Class GravatarProfileGalleryImage
java.lang.Object
com.github.natche.gravatarjavaclient.profile.serialization.GravatarProfileGalleryImage
Represents a gallery image on a Gravatar user's profile.
-
Constructor Summary
ConstructorsConstructorDescriptionGravatarProfileGalleryImage(String url, String altText) Constructs a new GravatarProfileGalleryImage. -
Method Summary
-
Constructor Details
-
GravatarProfileGalleryImage
Constructs a new GravatarProfileGalleryImage.- Parameters:
url- the URL to the imagealtText- the alternative text for the image- Throws:
NullPointerException- if any parameter is nullIllegalArgumentException- if the provided URL is empty
-
-
Method Details
-
getUrl
Returns the URL to the image.- Returns:
- the URL to the image
-
getAltText
Returns the alternative text for the image.- Returns:
- the alternative text for the image
-
equals
Returns whether the provided object is equal to this. -
hashCode
public int hashCode()Returns a hashcode for this object. -
toString
Returns a string representation of this object.
-