Class GravatarProfileInterest
java.lang.Object
com.github.natche.gravatarjavaclient.profile.serialization.GravatarProfileInterest
Represents an interest or hobby on a Gravatar user's profile.
-
Constructor Summary
ConstructorsConstructorDescriptionGravatarProfileInterest(int id, String name) Constructs a new GravatarProfileInterest. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the provided object is equal to this.intgetId()Returns the unique ID of the interest.getName()Returns the name of the interest.inthashCode()Returns a hashcode for this object.toString()Returns a string representation of this object.
-
Constructor Details
-
GravatarProfileInterest
Constructs a new GravatarProfileInterest.- Parameters:
id- the unique ID of the interestname- the name of the interest- Throws:
NullPointerException- if the provided name is nullIllegalArgumentException- if the provided name is empty
-
-
Method Details
-
getId
public int getId()Returns the unique ID of the interest.- Returns:
- the unique ID of the interest
-
getName
Returns the name of the interest.- Returns:
- the name of the interest
-
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.
-