Example usage for Java javax.print.attribute PrintServiceAttributeSet fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | add(Attribute attribute) Adds the specified attribute value to this attribute set if it is not already present, first removing any existing value in the same attribute category as the specified attribute value (optional operation). |
Attribute | get(Class> category) Returns the attribute value which this attribute set contains in the given attribute category. |
Attribute[] | toArray() Returns an array of the attributes contained in this set. |