javax.print.attribute.standard
public final class JobStateReasons extends HashSet<JobStateReason> implements PrintJobAttribute
JobStateReasons
attribute provides the set of
additional informations available about the current state of a print job.
IPP Compatibility: JobStateReasons is an IPP 1.1 attribute.
See Also: JobState
Constructor Summary | |
---|---|
JobStateReasons()
Constructs an empty JobStateReasons attribute. | |
JobStateReasons(int initialCapacity, float loadFactor)
Constructs an empty JobStateReasons attribute
with the given initial capacity and load factor.
| |
JobStateReasons(int initialCapacity)
Constructs an empty JobStateReasons attribute
with the given initial capacity and the default load factor.
| |
JobStateReasons(Collection<JobStateReason> collection)
Constructs a JobStateReasons attribute
with the content of the given collection.
|
Method Summary | |
---|---|
boolean | add(JobStateReason o)
Adds the given job state reason object to the set.
|
Class<? extends Attribute> | getCategory()
Returns category of this class.
|
String | getName()
Returns the name of this attribute.
|
JobStateReasons
attribute.JobStateReasons
attribute
with the given initial capacity and load factor.
Parameters: initialCapacity the intial capacity. loadFactor the load factor of the underlying HashSet.
Throws: IllegalArgumentException if initialCapacity < 0 IllegalArgumentException if initialCapacity or loadFactor < 0
JobStateReasons
attribute
with the given initial capacity and the default load factor.
Parameters: initialCapacity the intial capacity.
Throws: IllegalArgumentException if initialCapacity < 0
JobStateReasons
attribute
with the content of the given collection.
Parameters: collection the collection for the initial values.
Throws: NullPointerException if collection or any value is
null
. ClassCastException if values of collection are not of type
JobStateReason
.
Parameters: o the reason of type JobStateReason
.
Returns: true
if set changed, false
otherwise.
Throws: NullPointerException if given object is null
. ClassCastException if given object is not an instance of
JobStateReason
.
Returns: The class JobStateReasons
itself.
Returns: The name "job-state-reasons".