Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.print.attribute
Class AttributeSetUtilities.SynchronizedPrintRequestAttributeSet  view AttributeSetUtilities.SynchronizedPrintRequestAttributeSet download AttributeSetUtilities.SynchronizedPrintRequestAttributeSet.java

java.lang.Object
  extended byjavax.print.attribute.AttributeSetUtilities.SynchronizedAttributeSet
      extended byjavax.print.attribute.AttributeSetUtilities.SynchronizedPrintRequestAttributeSet
All Implemented Interfaces:
AttributeSet, PrintRequestAttributeSet, java.io.Serializable
Enclosing class:
AttributeSetUtilities

private static class AttributeSetUtilities.SynchronizedPrintRequestAttributeSet
extends AttributeSetUtilities.SynchronizedAttributeSet
implements PrintRequestAttributeSet, java.io.Serializable


Constructor Summary
AttributeSetUtilities.SynchronizedPrintRequestAttributeSet(PrintRequestAttributeSet attributeSet)
           
 
Method Summary
 boolean add(Attribute attribute)
          Adds the specified attribute value to this attribute set if it is not already present.
 boolean addAll(AttributeSet attributes)
          Adds all of the elements in the specified set to this attribute set.
 void clear()
          Removes all attributes from this attribute set.
 boolean containsKey(java.lang.Class category)
          Checks if this attributes set contains an attribute with the given category.
 boolean containsValue(Attribute attribute)
          Checks if this attribute set contains the given attribute.
 boolean equals(java.lang.Object obj)
          Tests this set for equality with the given object.
 Attribute get(java.lang.Class interfaceName)
          Returns the attribute object contained in this set for the given attribute category.
 int hashCode()
          Returns the hashcode value.
 boolean isEmpty()
          Checks if the attribute set is empty.
 boolean remove(Attribute attribute)
          Removes the given attribute from the set.
 boolean remove(java.lang.Class category)
          Removes the attribute entry of the given category from the set.
 int size()
          Returns the number of elements in this attribute set.
 Attribute[] toArray()
          Returns the content of the attribute set as an array
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.print.attribute.PrintRequestAttributeSet
add, addAll
 
Methods inherited from interface javax.print.attribute.AttributeSet
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, remove, remove, size, toArray
 

Constructor Detail

AttributeSetUtilities.SynchronizedPrintRequestAttributeSet

public AttributeSetUtilities.SynchronizedPrintRequestAttributeSet(PrintRequestAttributeSet attributeSet)
Method Detail

add

public boolean add(Attribute attribute)
Description copied from interface: AttributeSet
Adds the specified attribute value to this attribute set if it is not already present. This operation removes any existing attribute of the same category before adding the given attribute to the set.

Specified by:
add in interface AttributeSet

addAll

public boolean addAll(AttributeSet attributes)
Description copied from interface: AttributeSet
Adds all of the elements in the specified set to this attribute set.

Specified by:
addAll in interface AttributeSet

clear

public void clear()
Description copied from interface: AttributeSet
Removes all attributes from this attribute set.

Specified by:
clear in interface AttributeSet

containsKey

public boolean containsKey(java.lang.Class category)
Description copied from interface: AttributeSet
Checks if this attributes set contains an attribute with the given category.

Specified by:
containsKey in interface AttributeSet

containsValue

public boolean containsValue(Attribute attribute)
Description copied from interface: AttributeSet
Checks if this attribute set contains the given attribute.

Specified by:
containsValue in interface AttributeSet

equals

public boolean equals(java.lang.Object obj)
Description copied from interface: AttributeSet
Tests this set for equality with the given object. true is returned, if the given object is also of type AttributeSet and the contained attributes are the same as in this set.

Specified by:
equals in interface AttributeSet

get

public Attribute get(java.lang.Class interfaceName)
Description copied from interface: AttributeSet
Returns the attribute object contained in this set for the given attribute category.

Specified by:
get in interface AttributeSet

hashCode

public int hashCode()
Description copied from interface: AttributeSet
Returns the hashcode value. The hashcode value is the sum of all hashcodes of the attributes contained in this set.

Specified by:
hashCode in interface AttributeSet

isEmpty

public boolean isEmpty()
Description copied from interface: AttributeSet
Checks if the attribute set is empty.

Specified by:
isEmpty in interface AttributeSet

remove

public boolean remove(java.lang.Class category)
Description copied from interface: AttributeSet
Removes the attribute entry of the given category from the set. If the given category is null nothing is done and false is returned.

Specified by:
remove in interface AttributeSet

remove

public boolean remove(Attribute attribute)
Description copied from interface: AttributeSet
Removes the given attribute from the set. If the given attribute is null nothing is done and false is returned.

Specified by:
remove in interface AttributeSet

size

public int size()
Description copied from interface: AttributeSet
Returns the number of elements in this attribute set.

Specified by:
size in interface AttributeSet

toArray

public Attribute[] toArray()
Description copied from interface: AttributeSet
Returns the content of the attribute set as an array

Specified by:
toArray in interface AttributeSet