|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.4.2
javax.print.attribute.standard
|
Constructor Summary | |
JobStateReasons()
Construct a new, empty job state reasons attribute; the underlying hash set has the default initial capacity and load factor. |
|
JobStateReasons(Collection collection)
Construct a new job state reasons attribute that contains the same JobStateReason objects as the given collection. |
|
JobStateReasons(int initialCapacity)
Construct a new, empty job state reasons attribute; the underlying hash set has the given initial capacity and the default load factor. |
|
JobStateReasons(int initialCapacity,
float loadFactor)
Construct a new, empty job state reasons attribute; the underlying hash set has the given initial capacity and load factor. |
Method Summary | |
boolean |
add(Object o)
Adds the specified element to this job state reasons attribute if it is not already present. |
Class |
getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value. |
String |
getName()
Get the name of the category of which this attribute value is an instance. |
Methods inherited from class java.util.HashSet |
clear, clone, contains, isEmpty, iterator, remove, size |
Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
Constructor Detail |
public JobStateReasons()
public JobStateReasons(int initialCapacity)
initialCapacity
- Initial capacity.
IllegalArgumentException
- if the initial capacity is less
than zero.public JobStateReasons(int initialCapacity, float loadFactor)
initialCapacity
- Initial capacity.loadFactor
- Load factor.
IllegalArgumentException
- if the initial capacity is less
than zero.public JobStateReasons(Collection collection)
JobStateReason
objects as the given collection.
The underlying hash set's initial capacity and load factor are as
specified in the superclass constructor HashSet(Collection)
.
collection
- Collection to copy.
NullPointerException
- (unchecked exception) Thrown if collection
is null or
if any element in collection
is null.
ClassCastException
- (unchecked exception) Thrown if any element in
collection
is not an instance of class JobStateReason
.Method Detail |
public boolean add(Object o)
JobStateReason
. If this job state reasons
attribute already contains the specified element, the call leaves this
job state reasons attribute unchanged and returns false.
o
- Element to be added to this job state reasons attribute.
NullPointerException
- (unchecked exception) Thrown if the specified element is null.
ClassCastException
- (unchecked exception) Thrown if the specified element is not an
instance of class JobStateReason
.public final Class getCategory()
For class JobStateReasons, the category is class JobStateReasons itself.
getCategory
in interface Attribute
java.lang.Class
.public final String getName()
For class JobStateReasons, the category
name is "job-state-reasons"
.