javax.print.attribute

Class DateTimeSyntax

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.
Constructor Summary
protected DateTimeSyntax(Date value)
Creates a DateTimeSyntax with a given value.
Method Summary
booleanequals(Object obj)
Tests if the given object is equal to this one.
DategetValue()
Returns the date value of this object.
inthashCode()
Returns the hashcode for this object.
StringtoString()
Returns the string representation for this object.

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

equals

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

Parameters: obj the object to test

Returns: true if both objects are equal, false otherwise.

getValue

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

Returns: The date value.

hashCode

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

Returns: The hashcode.

toString

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

Returns: The string representation.