javax.print.attribute.standard
Class DateTimeAtCompleted

java.lang.Object
  extended by javax.print.attribute.DateTimeSyntax
      extended by javax.print.attribute.standard.DateTimeAtCompleted
All Implemented Interfaces:
Serializable, Cloneable, Attribute, PrintJobAttribute

public final class DateTimeAtCompleted
extends DateTimeSyntax
implements PrintJobAttribute

The DateTimeAtCompleted attribute specifies the date and the time at which a print job completed (or was canceled or aborted).

IPP Compatibility: DateTimeAtCompleted is an IPP 1.1 attribute.

See Also:
DateTimeAtCreation, DateTimeAtProcessing, Serialized Form

Constructor Summary
DateTimeAtCompleted(Date value)
          Creates a DateTimeAtCompleted object.
 
Method Summary
 boolean equals(Object obj)
          Tests if the given object is equal to this object.
 Class<? extends Attribute> getCategory()
          Returns category of this class.
 String getName()
          Returns the name of this attribute.
 
Methods inherited from class javax.print.attribute.DateTimeSyntax
getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateTimeAtCompleted

public DateTimeAtCompleted(Date value)
Creates a DateTimeAtCompleted object.

Parameters:
value - the date at completion time
Throws:
NullPointerException - if value is null
Method Detail

equals

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

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

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Specified by:
getCategory in interface Attribute
Returns:
The class DateTimeAtCompleted itself.

getName

public String getName()
Returns the name of this attribute.

Specified by:
getName in interface Attribute
Returns:
The name "date-time-at-completed".