Class GravatarProfileUrl
java.lang.Object
com.github.natche.gravatarjavaclient.profile.serialization.GravatarProfileUrl
A link on a user's Gravatar profile page.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the provided object is equal to this.getLabel()Returns the display label for this profile URL.getUrl()Returns the link for this profile URL.inthashCode()Returns a hashcode for this object.toString()Returns a string representation of this object.
-
Constructor Details
-
GravatarProfileUrl
Constructs a new profile URL.- Parameters:
label- the label for this profile URLurl- the link for this profile URL- Throws:
NullPointerException- if any parameter is nullIllegalArgumentException- if any parameter is empty
-
-
Method Details
-
getLabel
Returns the display label for this profile URL.- Returns:
- the display label for this profile URL
-
getUrl
Returns the link for this profile URL.- Returns:
- the link for this profile URL
-
toString
Returns a string representation of this object. -
hashCode
public int hashCode()Returns a hashcode for this object. -
equals
Returns whether the provided object is equal to this.
-