|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.photos.GphotoTimestamp
public class GphotoTimestamp
A datetime in unix timestamp format.
Constructor Summary | |
---|---|
GphotoTimestamp()
Default mutable constructor. |
|
GphotoTimestamp(java.util.Date value)
|
|
GphotoTimestamp(java.lang.Long value)
Immutable constructor. |
Method Summary | |
---|---|
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.Long |
getValue()
Returns the timestamp. |
int |
hashCode()
|
boolean |
hasValue()
Returns whether it has the timestamp. |
void |
setValue(java.lang.Long value)
Sets the timestamp. |
java.lang.String |
toString()
|
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, setImmutable |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GphotoTimestamp()
public GphotoTimestamp(java.lang.Long value)
value
- timestamp.public GphotoTimestamp(java.util.Date value)
Method Detail |
---|
public java.lang.Long getValue()
public void setValue(java.lang.Long value)
value
- timestamp or null
to resetpublic boolean hasValue()
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required
- whether it is requiredrepeatable
- whether it is repeatable
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |