public abstract class DateTimeSyntax extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable
DateTimeSyntax is the abstract base class of all attribute
classes having a date and a time as value.| Modifier | Constructor and Description |
|---|---|
protected |
DateTimeSyntax(java.util.Date value)
Creates a
DateTimeSyntax with a given value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests if the given object is equal to this one.
|
java.util.Date |
getValue()
Returns the date value of this object.
|
int |
hashCode()
Returns the hashcode for this object.
|
java.lang.String |
toString()
Returns the string representation for this object.
|
protected DateTimeSyntax(java.util.Date value)
DateTimeSyntax with a given value.value - the date for this syntaxjava.lang.NullPointerException - if value is nullpublic java.util.Date getValue()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to testtrue if both objects are equal,
false otherwise.Object.hashCode()public int hashCode()
hashCode in class java.lang.ObjectObject.equals(Object),
System.identityHashCode(Object)public java.lang.String toString()
toString in class java.lang.ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)