javax.print.attribute
Class HashPrintServiceAttributeSet

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.print.attribute.HashAttributeSet sample code for javax.print.attribute.HashAttributeSet definition code for javax.print.attribute.HashAttributeSet 
      extended by javax.print.attribute.HashPrintServiceAttributeSet
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , AttributeSet sample code for javax.print.attribute.AttributeSet definition code for javax.print.attribute.AttributeSet , PrintServiceAttributeSet sample code for javax.print.attribute.PrintServiceAttributeSet definition code for javax.print.attribute.PrintServiceAttributeSet

public class HashPrintServiceAttributeSet
extends HashAttributeSet sample code for javax.print.attribute.HashAttributeSet definition code for javax.print.attribute.HashAttributeSet
implements PrintServiceAttributeSet sample code for javax.print.attribute.PrintServiceAttributeSet definition code for javax.print.attribute.PrintServiceAttributeSet , Serializable sample code for java.io.Serializable definition code for java.io.Serializable

Class HashPrintServiceAttributeSet provides an attribute set which inherits its implementation from class HashAttributeSet sample code for javax.print.attribute.HashAttributeSet definition code for javax.print.attribute.HashAttributeSet and enforces the semantic restrictions of interface PrintServiceAttributeSet sample code for javax.print.attribute.PrintServiceAttributeSet definition code for javax.print.attribute.PrintServiceAttributeSet .

See Also:
Serialized Form

Constructor Summary
HashPrintServiceAttributeSet sample code for javax.print.attribute.HashPrintServiceAttributeSet.HashPrintServiceAttributeSet() definition code for javax.print.attribute.HashPrintServiceAttributeSet.HashPrintServiceAttributeSet() ()
          Construct a new, empty hash print service attribute set.
HashPrintServiceAttributeSet sample code for javax.print.attribute.HashPrintServiceAttributeSet.HashPrintServiceAttributeSet(javax.print.attribute.PrintServiceAttribute) definition code for javax.print.attribute.HashPrintServiceAttributeSet.HashPrintServiceAttributeSet(javax.print.attribute.PrintServiceAttribute) (PrintServiceAttribute sample code for javax.print.attribute.PrintServiceAttribute definition code for javax.print.attribute.PrintServiceAttribute  attribute)
          Construct a new hash print service attribute set, initially populated with the given value.
HashPrintServiceAttributeSet sample code for javax.print.attribute.HashPrintServiceAttributeSet.HashPrintServiceAttributeSet(javax.print.attribute.PrintServiceAttribute[]) definition code for javax.print.attribute.HashPrintServiceAttributeSet.HashPrintServiceAttributeSet(javax.print.attribute.PrintServiceAttribute[]) (PrintServiceAttribute sample code for javax.print.attribute.PrintServiceAttribute definition code for javax.print.attribute.PrintServiceAttribute [] attributes)
          Construct a new print service attribute set, initially populated with the values from the given array.
HashPrintServiceAttributeSet sample code for javax.print.attribute.HashPrintServiceAttributeSet.HashPrintServiceAttributeSet(javax.print.attribute.PrintServiceAttributeSet) definition code for javax.print.attribute.HashPrintServiceAttributeSet.HashPrintServiceAttributeSet(javax.print.attribute.PrintServiceAttributeSet) (PrintServiceAttributeSet sample code for javax.print.attribute.PrintServiceAttributeSet definition code for javax.print.attribute.PrintServiceAttributeSet  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 PrintServiceAttribute interface.
 
Method Summary
 
Methods inherited from class javax.print.attribute.HashAttributeSet sample code for javax.print.attribute.HashAttributeSet definition code for javax.print.attribute.HashAttributeSet
add sample code for javax.print.attribute.HashAttributeSet.add(javax.print.attribute.Attribute) definition code for javax.print.attribute.HashAttributeSet.add(javax.print.attribute.Attribute) , addAll sample code for javax.print.attribute.HashAttributeSet.addAll(javax.print.attribute.AttributeSet) definition code for javax.print.attribute.HashAttributeSet.addAll(javax.print.attribute.AttributeSet) , clear sample code for javax.print.attribute.HashAttributeSet.clear() definition code for javax.print.attribute.HashAttributeSet.clear() , containsKey sample code for javax.print.attribute.HashAttributeSet.containsKey(java.lang.Class) definition code for javax.print.attribute.HashAttributeSet.containsKey(java.lang.Class) , containsValue sample code for javax.print.attribute.HashAttributeSet.containsValue(javax.print.attribute.Attribute) definition code for javax.print.attribute.HashAttributeSet.containsValue(javax.print.attribute.Attribute) , equals sample code for javax.print.attribute.HashAttributeSet.equals(java.lang.Object) definition code for javax.print.attribute.HashAttributeSet.equals(java.lang.Object) , get sample code for javax.print.attribute.HashAttributeSet.get(java.lang.Class) definition code for javax.print.attribute.HashAttributeSet.get(java.lang.Class) , hashCode sample code for javax.print.attribute.HashAttributeSet.hashCode() definition code for javax.print.attribute.HashAttributeSet.hashCode() , isEmpty sample code for javax.print.attribute.HashAttributeSet.isEmpty() definition code for javax.print.attribute.HashAttributeSet.isEmpty() , remove sample code for javax.print.attribute.HashAttributeSet.remove(javax.print.attribute.Attribute) definition code for javax.print.attribute.HashAttributeSet.remove(javax.print.attribute.Attribute) , remove sample code for javax.print.attribute.HashAttributeSet.remove(java.lang.Class) definition code for javax.print.attribute.HashAttributeSet.remove(java.lang.Class) , size sample code for javax.print.attribute.HashAttributeSet.size() definition code for javax.print.attribute.HashAttributeSet.size() , toArray sample code for javax.print.attribute.HashAttributeSet.toArray() definition code for javax.print.attribute.HashAttributeSet.toArray()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 
Methods inherited from interface javax.print.attribute.PrintServiceAttributeSet sample code for javax.print.attribute.PrintServiceAttributeSet definition code for javax.print.attribute.PrintServiceAttributeSet
add sample code for javax.print.attribute.PrintServiceAttributeSet.add(javax.print.attribute.Attribute) definition code for javax.print.attribute.PrintServiceAttributeSet.add(javax.print.attribute.Attribute) , addAll sample code for javax.print.attribute.PrintServiceAttributeSet.addAll(javax.print.attribute.AttributeSet) definition code for javax.print.attribute.PrintServiceAttributeSet.addAll(javax.print.attribute.AttributeSet)
 
Methods inherited from interface javax.print.attribute.AttributeSet sample code for javax.print.attribute.AttributeSet definition code for javax.print.attribute.AttributeSet
clear sample code for javax.print.attribute.AttributeSet.clear() definition code for javax.print.attribute.AttributeSet.clear() , containsKey sample code for javax.print.attribute.AttributeSet.containsKey(java.lang.Class) definition code for javax.print.attribute.AttributeSet.containsKey(java.lang.Class) , containsValue sample code for javax.print.attribute.AttributeSet.containsValue(javax.print.attribute.Attribute) definition code for javax.print.attribute.AttributeSet.containsValue(javax.print.attribute.Attribute) , equals sample code for javax.print.attribute.AttributeSet.equals(java.lang.Object) definition code for javax.print.attribute.AttributeSet.equals(java.lang.Object) , get sample code for javax.print.attribute.AttributeSet.get(java.lang.Class) definition code for javax.print.attribute.AttributeSet.get(java.lang.Class) , hashCode sample code for javax.print.attribute.AttributeSet.hashCode() definition code for javax.print.attribute.AttributeSet.hashCode() , isEmpty sample code for javax.print.attribute.AttributeSet.isEmpty() definition code for javax.print.attribute.AttributeSet.isEmpty() , remove sample code for javax.print.attribute.AttributeSet.remove(javax.print.attribute.Attribute) definition code for javax.print.attribute.AttributeSet.remove(javax.print.attribute.Attribute) , remove sample code for javax.print.attribute.AttributeSet.remove(java.lang.Class) definition code for javax.print.attribute.AttributeSet.remove(java.lang.Class) , size sample code for javax.print.attribute.AttributeSet.size() definition code for javax.print.attribute.AttributeSet.size() , toArray sample code for javax.print.attribute.AttributeSet.toArray() definition code for javax.print.attribute.AttributeSet.toArray()
 

Constructor Detail

HashPrintServiceAttributeSet sample code for javax.print.attribute.HashPrintServiceAttributeSet() definition code for javax.print.attribute.HashPrintServiceAttributeSet()

public HashPrintServiceAttributeSet()
Construct a new, empty hash print service attribute set.


HashPrintServiceAttributeSet sample code for javax.print.attribute.HashPrintServiceAttributeSet(javax.print.attribute.PrintServiceAttribute) definition code for javax.print.attribute.HashPrintServiceAttributeSet(javax.print.attribute.PrintServiceAttribute)

public HashPrintServiceAttributeSet(PrintServiceAttribute sample code for javax.print.attribute.PrintServiceAttribute definition code for javax.print.attribute.PrintServiceAttribute  attribute)
Construct a new hash print service attribute set, initially populated with the given value.

Parameters:
attribute - Attribute value to add to the set.
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - (unchecked exception) Thrown if attribute is null.

HashPrintServiceAttributeSet sample code for javax.print.attribute.HashPrintServiceAttributeSet(javax.print.attribute.PrintServiceAttribute[]) definition code for javax.print.attribute.HashPrintServiceAttributeSet(javax.print.attribute.PrintServiceAttribute[])

public HashPrintServiceAttributeSet(PrintServiceAttribute sample code for javax.print.attribute.PrintServiceAttribute definition code for javax.print.attribute.PrintServiceAttribute [] attributes)
Construct a new print service 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. If null, an empty attribute set is constructed.
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - (unchecked exception) Thrown if any element of attributes is null.

HashPrintServiceAttributeSet sample code for javax.print.attribute.HashPrintServiceAttributeSet(javax.print.attribute.PrintServiceAttributeSet) definition code for javax.print.attribute.HashPrintServiceAttributeSet(javax.print.attribute.PrintServiceAttributeSet)

public HashPrintServiceAttributeSet(PrintServiceAttributeSet sample code for javax.print.attribute.PrintServiceAttributeSet definition code for javax.print.attribute.PrintServiceAttributeSet  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 PrintServiceAttribute interface.

Parameters:
attributes - set of attribute values to initialise the set. If null, an empty attribute set is constructed.
Throws:
ClassCastException sample code for java.lang.ClassCastException definition code for java.lang.ClassCastException - (unchecked exception) Thrown if any element of attributes is not an instance of PrintServiceAttribute.