|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Set
Set is a collection which does not allow duplicate elements.
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object object)
Adds the specified object to this Set. |
boolean |
addAll(Collection collection)
Adds the objects in the specified Collection which do not exist in this Set. |
void |
clear()
Removes all elements from this Set, leaving it empty. |
boolean |
contains(java.lang.Object object)
Searches this Set for the specified object. |
boolean |
containsAll(Collection collection)
Searches this Set for all objects in the specified Collection. |
boolean |
equals(java.lang.Object object)
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. |
int |
hashCode()
Answers an integer hash code for the receiver. |
boolean |
isEmpty()
Answers if this Set has no elements, a size of zero. |
Iterator |
iterator()
Answers an Iterator on the elements of this Set. |
boolean |
remove(java.lang.Object object)
Removes any occurrence of the specified object from this Set. |
boolean |
removeAll(Collection collection)
Removes all objects in the specified Collection from this Set. |
boolean |
retainAll(Collection collection)
Removes all objects from this Set that are not contained in the specified Collection. |
int |
size()
Answers the number of elements in this Set. |
java.lang.Object[] |
toArray()
Answers an array containing all elements contained in this Set. |
java.lang.Object[] |
toArray(java.lang.Object[] array)
Answers an array containing all elements contained in this Set. |
| Method Detail |
|---|
boolean add(java.lang.Object object)
add in interface Collectionobject - the object to add
java.lang.UnsupportedOperationException - when adding to this Set is not supported
java.lang.ClassCastException - when the class of the object is inappropriate for this Set
java.lang.IllegalArgumentException - when the object cannot be added to this Setboolean addAll(Collection collection)
addAll in interface Collectioncollection - the Collection of objects
java.lang.UnsupportedOperationException - when adding to this Set is not supported
java.lang.ClassCastException - when the class of an object is inappropriate for this Set
java.lang.IllegalArgumentException - when an object cannot be added to this Setvoid clear()
clear in interface Collectionjava.lang.UnsupportedOperationException - when removing from this Set is not supportedisEmpty(),
size()boolean contains(java.lang.Object object)
contains in interface Collectionobject - the object to search for
boolean containsAll(Collection collection)
containsAll in interface Collectioncollection - the Collection of objects
boolean equals(java.lang.Object object)
equals in interface Collectionequals in class java.lang.Objectobject - Object the object to compare with this object.
true if the object is the same as this object false if it is different
from this object.hashCode()int hashCode()
hashCode in interface CollectionhashCode in class java.lang.Objectequals(java.lang.Object)boolean isEmpty()
isEmpty in interface Collectionsize()Iterator iterator()
iterator in interface Collectioniterator in interface IterableIteratorboolean remove(java.lang.Object object)
remove in interface Collectionobject - the object to remove
java.lang.UnsupportedOperationException - when removing from this Set is not supportedboolean removeAll(Collection collection)
removeAll in interface Collectioncollection - the Collection of objects to remove
java.lang.UnsupportedOperationException - when removing from this Set is not supportedboolean retainAll(Collection collection)
retainAll in interface Collectioncollection - the Collection of objects to retain
java.lang.UnsupportedOperationException - when removing from this Set is not supportedint size()
size in interface Collectionjava.lang.Object[] toArray()
toArray in interface Collectionjava.lang.Object[] toArray(java.lang.Object[] array)
toArray in interface Collectionarray - the array
java.lang.ArrayStoreException - when the type of an element in this Set cannot be stored in the type of the specified array
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||