javax.print.attribute

Class HashPrintRequestAttributeSet

public class HashPrintRequestAttributeSet extends HashAttributeSet implements Serializable, PrintRequestAttributeSet

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

Constructor Detail

HashPrintRequestAttributeSet

public HashPrintRequestAttributeSet()
Creates an empty HashPrintRequestAttributeSet object.

HashPrintRequestAttributeSet

public HashPrintRequestAttributeSet(PrintRequestAttribute attribute)
Creates a HashPrintRequestAttributeSet object with the given attribute in it.

Parameters: attribute the attribute to put into the attribute set

Throws: NullPointerException if attribute is null

HashPrintRequestAttributeSet

public HashPrintRequestAttributeSet(PrintRequestAttribute[] attributes)
Creates a HashPrintRequestAttributeSet 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.

HashPrintRequestAttributeSet

public HashPrintRequestAttributeSet(PrintRequestAttributeSet attributes)
Creates a HashPrintRequestAttributeSet 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 PrintRequestAttribute