javax.print.attribute
Class DateTimeSyntax

java.lang.Object
  extended by javax.print.attribute.DateTimeSyntax
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
DateTimeAtCompleted, DateTimeAtCreation, DateTimeAtProcessing, JobHoldUntil

public abstract class DateTimeSyntax
extends Object
implements Cloneable, Serializable

DateTimeSyntax is the abstract base class of all attribute classes having a date and a time as value.

See Also:
Serialized Form

Constructor Summary
protected DateTimeSyntax(Date value)
          Creates a DateTimeSyntax with a given value.
 
Method Summary
 boolean equals(Object obj)
          Tests if the given object is equal to this one.
 Date getValue()
          Returns the date value of this object.
 int hashCode()
          Returns the hashcode for this object.
 String toString()
          Returns the string representation for this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateTimeSyntax

protected DateTimeSyntax(Date value)
Creates a DateTimeSyntax with a given value.

Parameters:
value - the date for this syntax
Throws:
NullPointerException - if value is null
Method Detail

getValue

public Date getValue()
Returns the date value of this object.

Returns:
The date value.

equals

public boolean equals(Object obj)
Tests if the given object is equal to this one.

Overrides:
equals in class Object
Parameters:
obj - the object to test
Returns:
true if both objects are equal, false otherwise.
See Also:
Object.hashCode()

hashCode

public int hashCode()
Returns the hashcode for this object.

Overrides:
hashCode in class Object
Returns:
The hashcode.
See Also:
Object.equals(Object), System.identityHashCode(Object)

toString

public String toString()
Returns the string representation for this object.

Overrides:
toString in class Object
Returns:
The string representation.
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)