public class IlrDefaultCollector extends java.lang.Object implements IlrCollection, java.io.Serializable, java.util.Collection
collect condition
for which a collector is not provided.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector |
elements
Deprecated.
This vector contains the elements of the collection.
|
| Constructor and Description |
|---|
IlrDefaultCollector()
Deprecated.
Constructs a collector with no arguments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Object o)
Deprecated.
Ensures that this collection contains the specified element.
|
boolean |
addAll(java.util.Collection c)
Deprecated.
Adds all of the elements in the specified collection to this collection.
|
void |
addElement(java.lang.Object element)
Deprecated.
Adds the specified element to the vector.
|
void |
clear()
Deprecated.
Removes all of the elements from this collection.
|
boolean |
contains(java.lang.Object element)
Deprecated.
Tests if the collection contains some specific object using the
equals method. |
boolean |
containsAll(java.util.Collection c)
Deprecated.
Returns
true if this collection contains all the elements
in the specified collection. |
java.util.Enumeration |
copyElements()
Deprecated.
Creates an enumeration to visit all the elements of the collection.
|
java.util.Enumeration |
elements()
Deprecated.
Creates an enumeration to visit all the elements of the collection.
|
boolean |
equals(java.lang.Object o)
Deprecated.
Compares the specified object with this collection for equality.
|
int |
hashCode()
Deprecated.
Returns the hash code value for this collection.
|
boolean |
isEmpty()
Deprecated.
Tests if the collection is empty.
|
java.util.Iterator |
iterator()
Deprecated.
Returns an iterator over the elements in this collection.
|
boolean |
remove(java.lang.Object o)
Deprecated.
Removes the occurrence of the specified element in the collected
object.
|
boolean |
removeAll(java.util.Collection c)
Deprecated.
Removes all of the elements from this collection that are contained in
the specified collection.
|
void |
removeElement(java.lang.Object element)
Deprecated.
Removes the specified element from the vector.
|
boolean |
retainAll(java.util.Collection c)
Deprecated.
Retains only the elements in this collection that are contained in the
specified collection.
|
int |
size()
Deprecated.
Gets the number of elements currently in this collection.
|
java.lang.Object[] |
toArray()
Deprecated.
Returns an array containing all of the collected elements.
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
Deprecated.
Returns an array containing all of the collected elements whose runtime
type is that of the specified array.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitupdateElementprotected java.util.Vector elements
This vector contains the elements of the collection.
public IlrDefaultCollector()
Constructs a collector with no arguments.
public final int size()
Gets the number of elements currently in this collection.
size in interface java.util.Collectionpublic final boolean isEmpty()
Tests if the collection is empty.
isEmpty in interface java.util.Collectiontrue if the collection contains no objects,
and false if the collection has at least one object.public final boolean contains(java.lang.Object element)
Tests if the collection contains some specific object using the
equals method.
contains in interface java.util.Collectionelement - An object.true if the specified object is a member of
this collection, and false otherwise.public final java.util.Enumeration elements()
Creates an enumeration to visit all the elements of the collection. This method does not save (or copy) the elements. During the visit, any changes to the collection may impact the enumeration.
public final java.util.Enumeration copyElements()
Creates an enumeration to visit all the elements of the collection. This method creates a new holder containing the elements and returns an enumeration of that holder. As the elements are saved in a specific data structure, the returned enumeration will not be impacted by any changes on the collection.
public void addElement(java.lang.Object element)
Adds the specified element to the vector. The element is added at the end of the vector without any membership testing.
addElement in interface IlrCollectionelement - The element to add.public void removeElement(java.lang.Object element)
Removes the specified element from the vector. If the vector does not contain the element, no element is removed.
removeElement in interface IlrCollectionelement - The element to removed.public boolean add(java.lang.Object o)
true if this collection changed as a result of the
call. (It returns false if this collection does not permit
duplicates and already contains the specified element.)add in interface java.util.Collectiono - The element whose presence in this collection is to be ensured.true if this collection changed as a result of the
call.public boolean addAll(java.util.Collection c)
addAll in interface java.util.Collectionc - The elements to be inserted into this collection.true if this collection changed as a result of
the call.public void clear()
clear in interface java.util.Collectionpublic boolean containsAll(java.util.Collection c)
true if this collection contains all the elements
in the specified collection.containsAll in interface java.util.Collectionc - The collection to be checked for containment in this collection.true if this collection contains all of the
elements in the specified collection.public boolean equals(java.lang.Object o)
equals in interface java.util.Collectionequals in class java.lang.Objecto - The object to be compared for equality with this collection.true if the specified object is equal to this
collection.public int hashCode()
hashCode in interface java.util.CollectionhashCode in class java.lang.Objectpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectionpublic boolean remove(java.lang.Object o)
true if the specified object was contained
in this collection.remove in interface java.util.Collectiono - The object to be removed from this collection, if present.true if the collection contained the specified
element.public boolean removeAll(java.util.Collection c)
removeAll in interface java.util.Collectionc - The collection that contains all the objects to be removed.true if this collection changed as a result of
the call.public boolean retainAll(java.util.Collection c)
retainAll in interface java.util.Collectionc - The collection that contains all the objects to be retained.true if this collection changed as a result of
the call.public java.lang.Object[] toArray()
toArray in interface java.util.Collectionpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.Collectiona - The array into which the elements of this collection are to be
stored, if it is big enough; otherwise, a new array of the same runtime
type is allocated for this purpose.© Copyright IBM Corp. 1987, 2017