public class GphotoStarred extends AbstractExtension
Constructor and Description |
---|
GphotoStarred()
Default mutable constructor.
|
GphotoStarred(java.lang.Integer total,
java.lang.Boolean value)
Immutable constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static ExtensionDescription |
getDefaultDescription(boolean required,
boolean repeatable)
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
|
java.lang.Integer |
getTotal()
Returns the number of stars.
|
java.lang.Boolean |
getValue()
Returns the viewer starred photo.
|
int |
hashCode() |
boolean |
hasTotal()
Returns whether it has the number of stars.
|
boolean |
hasValue()
Returns whether it has the viewer starred photo.
|
void |
setTotal(java.lang.Integer total)
Sets the number of stars.
|
void |
setValue(java.lang.Boolean value)
Sets the viewer starred photo.
|
java.lang.String |
toString() |
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, setImmutable
public GphotoStarred()
public GphotoStarred(java.lang.Integer total, java.lang.Boolean value)
total
- number of stars.value
- viewer starred photo.public java.lang.Integer getTotal()
public void setTotal(java.lang.Integer total)
total
- number of stars or null
to resetpublic boolean hasTotal()
public java.lang.Boolean getValue()
public void setValue(java.lang.Boolean value)
value
- viewer starred photo or null
to resetpublic boolean hasValue()
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required
- whether it is requiredrepeatable
- whether it is repeatablepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object