|
|||||||||
| Home >> All >> javax >> print >> [ attribute overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.print.attribute
Class AttributeSetUtilities.SynchronizedAttributeSet

java.lang.Objectjavax.print.attribute.AttributeSetUtilities.SynchronizedAttributeSet
- All Implemented Interfaces:
- AttributeSet, java.io.Serializable
- Direct Known Subclasses:
- AttributeSetUtilities.SynchronizedDocAttributeSet, AttributeSetUtilities.SynchronizedPrintJobAttributeSet, AttributeSetUtilities.SynchronizedPrintRequestAttributeSet, AttributeSetUtilities.SynchronizedPrintServiceAttributeSet
- Enclosing class:
- AttributeSetUtilities
- private static class AttributeSetUtilities.SynchronizedAttributeSet
- extends java.lang.Object
- implements AttributeSet, java.io.Serializable
- extends java.lang.Object
| Field Summary | |
private AttributeSet |
attrset
|
| Constructor Summary | |
AttributeSetUtilities.SynchronizedAttributeSet(AttributeSet 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 |
| Field Detail |
attrset
private AttributeSet attrset
| Constructor Detail |
AttributeSetUtilities.SynchronizedAttributeSet
public AttributeSetUtilities.SynchronizedAttributeSet(AttributeSet 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:
addin interfaceAttributeSet
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:
addAllin interfaceAttributeSet
clear
public void clear()
- Description copied from interface:
AttributeSet - Removes all attributes from this attribute set.
- Specified by:
clearin interfaceAttributeSet
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:
containsKeyin interfaceAttributeSet
containsValue
public boolean containsValue(Attribute attribute)
- Description copied from interface:
AttributeSet - Checks if this attribute set contains the given attribute.
- Specified by:
containsValuein interfaceAttributeSet
equals
public boolean equals(java.lang.Object obj)
- Description copied from interface:
AttributeSet - Tests this set for equality with the given object.
trueis returned, if the given object is also of typeAttributeSetand the contained attributes are the same as in this set.- Specified by:
equalsin interfaceAttributeSet
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:
getin interfaceAttributeSet
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:
hashCodein interfaceAttributeSet
isEmpty
public boolean isEmpty()
- Description copied from interface:
AttributeSet - Checks if the attribute set is empty.
- Specified by:
isEmptyin interfaceAttributeSet
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
nullnothing is done andfalseis returned.- Specified by:
removein interfaceAttributeSet
remove
public boolean remove(Attribute attribute)
- Description copied from interface:
AttributeSet - Removes the given attribute from the set. If the given attribute is
nullnothing is done andfalseis returned.- Specified by:
removein interfaceAttributeSet
size
public int size()
- Description copied from interface:
AttributeSet - Returns the number of elements in this attribute set.
- Specified by:
sizein interfaceAttributeSet
toArray
public Attribute[] toArray()
- Description copied from interface:
AttributeSet - Returns the content of the attribute set as an array
- Specified by:
toArrayin interfaceAttributeSet
|
|||||||||
| Home >> All >> javax >> print >> [ attribute overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
javax.print.attribute.AttributeSetUtilities.SynchronizedAttributeSet