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

@Immutable public final class GravatarProfileUrl extends Object
A link on a user's Gravatar profile page.
  • Constructor Details

    • GravatarProfileUrl

      public GravatarProfileUrl(String label, String url)
      Constructs a new profile URL.
      Parameters:
      label - the label for this profile URL
      url - the link for this profile URL
      Throws:
      NullPointerException - if any parameter is null
      IllegalArgumentException - if any parameter is empty
  • Method Details

    • getLabel

      public String getLabel()
      Returns the display label for this profile URL.
      Returns:
      the display label for this profile URL
    • getUrl

      public String getUrl()
      Returns the link for this profile URL.
      Returns:
      the link for this profile URL
    • toString

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

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

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