|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.richtext.textlayout.attributes.AttributeSet
An AttributeSet is an immutable collection of unique Objects. It has several operations which return new AttributeSet instances.
Field Summary | |
static AttributeSet |
EMPTY_SET
An AttributeSet with no members. |
Constructor Summary | |
AttributeSet()
Create a new, empty AttributeSet. |
|
AttributeSet(java.lang.Object elem)
Create a new AttributeSet with the single element elem. |
|
AttributeSet(java.lang.Object[] elems)
Create a new AttributeSet containing the items in the array elems. |
Method Summary | |
boolean |
add(java.lang.Object o)
Throws UnsupportedOperationException. |
boolean |
addAll(java.util.Collection coll)
Throws UnsupportedOperationException. |
AttributeSet |
addElement(java.lang.Object element)
Return an AttributeSet containing the elements of this set and the given element |
void |
clear()
Throws UnsupportedOperationException. |
boolean |
contains(java.lang.Object o)
Return true if this set contains the given Object |
boolean |
containsAll(java.util.Collection coll)
Return true if this set contains all elements in the given Collection |
java.util.Enumeration |
elements()
Return an Enumeration of the elements in this set. |
boolean |
equals(AttributeSet rhs)
|
boolean |
equals(java.lang.Object rhs)
|
AttributeSet |
intersectWith(AttributeSet s)
Return an AttributeSet which is the intersection of this set with the given set. |
boolean |
isEmpty()
Return true if the number of elements in this set is 0. |
java.util.Iterator |
iterator()
Return an Iterator with the elements in this set. |
boolean |
remove(java.lang.Object o)
Throws UnsupportedOperationException. |
boolean |
removeAll(java.util.Collection coll)
Throws UnsupportedOperationException. |
boolean |
retainAll(java.util.Collection coll)
Throws UnsupportedOperationException. |
int |
size()
Return the number of elements in this set. |
AttributeSet |
subtract(AttributeSet s)
Return an AttributeSet with the elements in this set which are not in the given set. |
java.lang.Object[] |
toArray()
Return an array with the elements in this set. |
java.lang.Object[] |
toArray(java.lang.Object[] storage)
Fill in the given array with the elements in this set. |
AttributeSet |
unionWith(AttributeSet s)
Return an AttributeSet which is the union of this set with the given set. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Set |
hashCode |
Field Detail |
public static final AttributeSet EMPTY_SET
Constructor Detail |
public AttributeSet()
public AttributeSet(java.lang.Object elem)
public AttributeSet(java.lang.Object[] elems)
Method Detail |
public boolean isEmpty()
isEmpty
in interface java.util.Set
public int size()
size
in interface java.util.Set
public boolean equals(java.lang.Object rhs)
equals
in interface java.util.Set
equals
in class java.lang.Object
public boolean equals(AttributeSet rhs)
public boolean contains(java.lang.Object o)
contains
in interface java.util.Set
o
public boolean containsAll(java.util.Collection coll)
containsAll
in interface java.util.Set
coll
- the collection to compare withpublic java.util.Enumeration elements()
public java.util.Iterator iterator()
iterator
in interface java.util.Set
public java.lang.Object[] toArray(java.lang.Object[] storage)
toArray
in interface java.util.Set
storage
- an array to fill with this set's elements.
The array cannot be null.public java.lang.Object[] toArray()
toArray
in interface java.util.Set
public boolean add(java.lang.Object o)
add
in interface java.util.Set
UnsupportedOperationException
- addElement(java.lang.Object)
public boolean remove(java.lang.Object o)
remove
in interface java.util.Set
UnsupportedOperationException
- public boolean addAll(java.util.Collection coll)
addAll
in interface java.util.Set
UnsupportedOperationException
- unionWith(com.ibm.richtext.textlayout.attributes.AttributeSet)
public boolean removeAll(java.util.Collection coll)
removeAll
in interface java.util.Set
UnsupportedOperationException
- subtract(com.ibm.richtext.textlayout.attributes.AttributeSet)
public boolean retainAll(java.util.Collection coll)
retainAll
in interface java.util.Set
UnsupportedOperationException
- intersectWith(com.ibm.richtext.textlayout.attributes.AttributeSet)
public void clear()
clear
in interface java.util.Set
UnsupportedOperationException
- EMPTY_SET
public AttributeSet addElement(java.lang.Object element)
element
- the element to addelement
addedpublic AttributeSet unionWith(AttributeSet s)
s
- the set to union withs
public AttributeSet intersectWith(AttributeSet s)
s
- the set to intersect withs
public AttributeSet subtract(AttributeSet s)
s
- the set of elements to excludes
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |