Class DateTimeSyntax
- All Implemented Interfaces:
Serializable, Cloneable
- Direct Known Subclasses:
DateTimeAtCompleted, DateTimeAtCreation, DateTimeAtProcessing, JobHoldUntil
DateTimeSyntax
is an abstract base class providing the common
implementation of all attributes whose value is a date and time.
Under the hood, a date-time attribute is stored as a value of class
java.util.Date
. You can get a date-time attribute's Date
value by calling getValue()
. A date-time attribute's
Date
value is established when it is constructed (see
DateTimeSyntax(Date)
). Once constructed, a
date-time attribute's value is immutable.
To construct a date-time attribute from separate values of the year, month,
day, hour, minute, and so on, use a java.util.Calendar
object to
construct a java.util.Date
object, then use the
java.util.Date
object to construct the date-time attribute. To
convert a date-time attribute to separate values of the year, month, day,
hour, minute, and so on, create a java.util.Calendar
object and set
it to the java.util.Date
from the date-time attribute. Class
DateTimeSyntax
stores its value in the form of a
java.util.Date
rather than a java.util.Calendar
because it
typically takes less memory to store and less time to compare a
java.util.Date
than a java.util.Calendar
.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DateTimeSyntax
(Date value) Construct a new date-time attribute with the givenjava.util.Date
value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether this date-time attribute is equivalent to the passed in object.getValue()
Returns this date-time attribute'sjava.util.Date
value.int
hashCode()
Returns a hash code value for this date-time attribute.toString()
Returns a string value corresponding to this date-time attribute.Methods declared in class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Modifier and TypeMethodDescriptionprotected Object
clone()
Creates and returns a copy of this object.protected void
finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization is deprecated and subject to removal in a future release.final Class
<?> getClass()
Returns the runtime class of thisObject
.final void
notify()
Wakes up a single thread that is waiting on this object's monitor.final void
Wakes up all threads that are waiting on this object's monitor.final void
wait()
Causes the current thread to wait until it is awakened, typically by being notified or interrupted.final void
wait
(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.final void
wait
(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
Constructor Details
-
DateTimeSyntax
Construct a new date-time attribute with the givenjava.util.Date
value.- Parameters:
value
-java.util.Date
value- Throws:
NullPointerException
- ifvalue
isnull
-
-
Method Details
-
getValue
-
equals
Returns whether this date-time attribute is equivalent to the passed in object. To be equivalent, all of the following conditions must be true:object
is notnull
.object
is an instance of classDateTimeSyntax
.- This date-time attribute's
java.util.Date
value andobject
'sjava.util.Date
value are equal.
-
hashCode
-
toString
-