HashPrintRequestAttributeSet (Java SE 15 & JDK 15) (original) (raw)
All Implemented Interfaces:
[Serializable](../../../../java.base/java/io/Serializable.html "interface in java.io")
, [AttributeSet](AttributeSet.html "interface in javax.print.attribute")
, [PrintRequestAttributeSet](PrintRequestAttributeSet.html "interface in javax.print.attribute")
public class HashPrintRequestAttributeSet extends HashAttributeSet implements PrintRequestAttributeSet, Serializable
Class HashPrintRequestAttributeSet
inherits its implementation from class HashAttributeSet and enforces the semantic restrictions of interfacePrintRequestAttributeSet.
See Also:
Constructor Summary
Constructors
Constructor | Description |
---|---|
HashPrintRequestAttributeSet() | Construct a new, empty print request attribute set. |
HashPrintRequestAttributeSet(PrintRequestAttribute attribute) | Construct a new print request attribute set, initially populated with the given value. |
HashPrintRequestAttributeSet(PrintRequestAttribute[] attributes) | Construct a new print request attribute set, initially populated with the values from the given array. |
HashPrintRequestAttributeSet(PrintRequestAttributeSet attributes) | Construct a new attribute set, initially populated with the values from the given set where the members of the attribute set are restricted to the (PrintRequestAttributeSe interface. |
Method Summary
Methods declared in class javax.print.attribute.HashAttributeSet
[add](HashAttributeSet.html#add%28javax.print.attribute.Attribute%29), [addAll](HashAttributeSet.html#addAll%28javax.print.attribute.AttributeSet%29), [clear](HashAttributeSet.html#clear%28%29), [containsKey](HashAttributeSet.html#containsKey%28java.lang.Class%29), [containsValue](HashAttributeSet.html#containsValue%28javax.print.attribute.Attribute%29), [equals](HashAttributeSet.html#equals%28java.lang.Object%29), [get](HashAttributeSet.html#get%28java.lang.Class%29), [hashCode](HashAttributeSet.html#hashCode%28%29), [isEmpty](HashAttributeSet.html#isEmpty%28%29), [remove](HashAttributeSet.html#remove%28java.lang.Class%29), [remove](HashAttributeSet.html#remove%28javax.print.attribute.Attribute%29), [size](HashAttributeSet.html#size%28%29), [toArray](HashAttributeSet.html#toArray%28%29)
Methods declared in interface javax.print.attribute.AttributeSet
[clear](AttributeSet.html#clear%28%29), [containsKey](AttributeSet.html#containsKey%28java.lang.Class%29), [containsValue](AttributeSet.html#containsValue%28javax.print.attribute.Attribute%29), [equals](AttributeSet.html#equals%28java.lang.Object%29), [get](AttributeSet.html#get%28java.lang.Class%29), [hashCode](AttributeSet.html#hashCode%28%29), [isEmpty](AttributeSet.html#isEmpty%28%29), [remove](AttributeSet.html#remove%28java.lang.Class%29), [remove](AttributeSet.html#remove%28javax.print.attribute.Attribute%29), [size](AttributeSet.html#size%28%29), [toArray](AttributeSet.html#toArray%28%29)
Constructor Details
HashPrintRequestAttributeSet
public HashPrintRequestAttributeSet()
Construct a new, empty print request attribute set.HashPrintRequestAttributeSet
Construct a new print request attribute set, initially populated with the given value.
Parameters:
attribute
- attribute value to add to the set
Throws:
[NullPointerException](../../../../java.base/java/lang/NullPointerException.html "class in java.lang")
- ifattribute
isnull
HashPrintRequestAttributeSet
Construct a new print request attribute set, initially populated with the values from the given array. The new attribute set is populated by adding the elements of
attributes
array to the set in sequence, starting at index 0. Thus, later array elements may replace earlier array elements if the array contains duplicate attribute values or attribute categories.
Parameters:
attributes
- array of attribute values to add to the set. Ifnull
, an empty attribute set is constructed.
Throws:
[NullPointerException](../../../../java.base/java/lang/NullPointerException.html "class in java.lang")
- if any element ofattributes
isnull
HashPrintRequestAttributeSet
Construct a new attribute set, initially populated with the values from the given set where the members of the attribute set are restricted to the
(PrintRequestAttributeSe
interface.
Parameters:
attributes
- set of attribute values to initialise the set. Ifnull
, an empty attribute set is constructed.
Throws:
[ClassCastException](../../../../java.base/java/lang/ClassCastException.html "class in java.lang")
- if any element ofattributes
is not an instance ofPrintRequestAttributeSe