javax.print.attribute

Class HashPrintJobAttributeSet

public class HashPrintJobAttributeSet extends HashAttributeSet implements Serializable, PrintJobAttributeSet

HashPrintJobAttributeSet provides an implementation of {@link javax.print.attribute.PrintJobAttributeSet}.
Constructor Summary
HashPrintJobAttributeSet()
Creates an empty HashPrintJobAttributeSet object.
HashPrintJobAttributeSet(PrintJobAttribute attribute)
Creates a HashPrintJobAttributeSet object with the given attribute in it.
HashPrintJobAttributeSet(PrintJobAttribute[] attributes)
Creates a HashPrintJobAttributeSet object with the given attributes in it.
HashPrintJobAttributeSet(PrintJobAttributeSet attributes)
Creates a HashPrintJobAttributeSet object with the attributes of the given attributes set in it.

Constructor Detail

HashPrintJobAttributeSet

public HashPrintJobAttributeSet()
Creates an empty HashPrintJobAttributeSet object.

HashPrintJobAttributeSet

public HashPrintJobAttributeSet(PrintJobAttribute attribute)
Creates a HashPrintJobAttributeSet object with the given attribute in it.

Parameters: attribute the attribute to put into the attribute set

Throws: NullPointerException if attribute is null

HashPrintJobAttributeSet

public HashPrintJobAttributeSet(PrintJobAttribute[] attributes)
Creates a HashPrintJobAttributeSet object with the given attributes in it.

Parameters: attributes the array of attributes to put into the set. If null an empty set is created.

Throws: NullPointerException if one of the attributes of the given array is null.

HashPrintJobAttributeSet

public HashPrintJobAttributeSet(PrintJobAttributeSet attributes)
Creates a HashPrintJobAttributeSet object with the attributes of the given attributes set in it.

Parameters: attributes the attributes set to put into the set. If null an empty set is created.

Throws: ClassCastException if any element of attributes is not an instance of PrintJobAttribute