public class GphotoTimestamp extends AbstractExtension
Constructor and Description |
---|
GphotoTimestamp()
Default mutable constructor.
|
GphotoTimestamp(java.util.Date value) |
GphotoTimestamp(java.lang.Long 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.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() |
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, setImmutable
public GphotoTimestamp()
public GphotoTimestamp(java.lang.Long value)
value
- timestamp.public GphotoTimestamp(java.util.Date value)
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 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