Class GravatarProfileGalleryImage

java.lang.Object
com.github.natche.gravatarjavaclient.profile.serialization.GravatarProfileGalleryImage

public final class GravatarProfileGalleryImage extends Object
Represents a gallery image on a Gravatar user's profile.
  • Constructor Details

    • GravatarProfileGalleryImage

      public GravatarProfileGalleryImage(String url, String altText)
      Constructs a new GravatarProfileGalleryImage.
      Parameters:
      url - the URL to the image
      altText - the alternative text for the image
      Throws:
      NullPointerException - if any parameter is null
      IllegalArgumentException - if the provided URL is empty
  • Method Details

    • getUrl

      public String getUrl()
      Returns the URL to the image.
      Returns:
      the URL to the image
    • getAltText

      public String getAltText()
      Returns the alternative text for the image.
      Returns:
      the alternative text for the image
    • equals

      public boolean equals(Object o)
      Returns whether the provided object is equal to this.
      Overrides:
      equals in class Object
      Parameters:
      o - the other object
      Returns:
      whether the provided object is equal to this
    • hashCode

      public int hashCode()
      Returns a hashcode for this object.
      Overrides:
      hashCode in class Object
      Returns:
      a hashcode for this object
    • toString

      public String toString()
      Returns a string representation of this object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this object