|
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 |
java.lang.Objectoracle.adfnmc.java.util.AbstractCollection
public abstract class AbstractCollection
AbstractCollection is an abstract implementation of the Collection interface. This implementation does not support adding. A subclass must implement the abstract methods iterator() and size().
Constructor Summary | |
---|---|
protected |
AbstractCollection()
Constructs a new instance of this AbstractCollection. |
Method Summary | |
---|---|
boolean |
add(java.lang.Object object)
If the specified element is not contained within this collection, and addition of this element succeeds, then true will be returned. |
boolean |
addAll(Collection collection)
Adds the objects in the specified Collection to this Collection. |
void |
clear()
Removes all the elements in this collection. |
boolean |
contains(java.lang.Object object)
Searches this Collection for the specified object. |
boolean |
containsAll(Collection collection)
Searches this Collection for all objects in the specified Collection. |
boolean |
isEmpty()
Returns true if the collection has no element, otherwise false. |
abstract Iterator |
iterator()
Answers an Iterator on the elements of this Collection. |
boolean |
remove(java.lang.Object object)
Removes the first occurrence of the specified object from this Collection. |
boolean |
removeAll(Collection collection)
Removes all occurrences in this Collection of each object in the specified Collection. |
boolean |
retainAll(Collection collection)
Removes all objects from this Collection that are not contained in the specified Collection. |
abstract int |
size()
Answers the number of elements in this Collection. |
java.lang.Object[] |
toArray()
Answers a new array containing all elements contained in this Collection. |
java.lang.Object[] |
toArray(java.lang.Object[] contents)
Answers an array containing all elements contained in this Collection. |
java.lang.String |
toString()
Answers the string representation of this Collection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.adfnmc.java.util.Collection |
---|
equals, hashCode |
Constructor Detail |
---|
protected AbstractCollection()
Method Detail |
---|
public boolean add(java.lang.Object object)
add
in interface Collection
object
- the element to be added.
java.lang.UnsupportedOperationException
- if add operation is not supported by this class.
java.lang.NullPointerException
- if null is used to invoke this method, and null is not permitted by this collection.
java.lang.ClassCastException
- if the class type of the specified element is not compatible with the permitted class type.
java.lang.IllegalArgumentException
- if limitations of this collection prevent the specified element from being addedpublic boolean addAll(Collection collection)
addAll
in interface Collection
collection
- the Collection of objects
java.lang.UnsupportedOperationException
- when adding to this Collection is not supported
java.lang.NullPointerException
- if null is used to invoke this methodpublic void clear()
clear
in interface Collection
java.lang.UnsupportedOperationException
- if this operation is not implemented.Collection.isEmpty()
,
Collection.size()
public boolean contains(java.lang.Object object)
contains
in interface Collection
object
- the object to search for
object
is an element of this Collection, false otherwisepublic boolean containsAll(Collection collection)
containsAll
in interface Collection
collection
- the Collection of objects
java.lang.NullPointerException
- if null is used to invoke this methodpublic boolean isEmpty()
isEmpty
in interface Collection
Collection.size()
public abstract Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
Iterator
public boolean remove(java.lang.Object object)
remove
in interface Collection
object
- the object to remove
java.lang.UnsupportedOperationException
- when removing from this Collection is not supportedpublic boolean removeAll(Collection collection)
removeAll
in interface Collection
collection
- the Collection of objects to remove
java.lang.UnsupportedOperationException
- when removing from this Collection is not supported
java.lang.NullPointerException
- if null is used to invoke this methodpublic boolean retainAll(Collection collection)
retainAll
in interface Collection
collection
- the Collection of objects to retain
java.lang.UnsupportedOperationException
- when removing from this Collection is not supported
java.lang.NullPointerException
- if null is used to invoke this methodpublic abstract int size()
size
in interface Collection
public java.lang.Object[] toArray()
toArray
in interface Collection
public java.lang.Object[] toArray(java.lang.Object[] contents)
toArray
in interface Collection
contents
- the array
java.lang.ArrayStoreException
- when the type of an element in this Collection cannot be stored in the type of the specified array
java.lang.NullPointerException
- if null is used to invoke this methodpublic java.lang.String toString()
toString
in class java.lang.Object
|
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 |