|
Oracle® OLAP Java API Reference 12c Release 1 (12.1) E17708-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
oracle.olapi.ArraySet
public class ArraySet
A resizable-array implementation of the Set interface from the collections framework. A set cannot contain duplicate elements.
For the util package documentation, see Package java.util.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
ArraySet()Creates an empty set. |
|
ArraySet(java.util.Collection c)Creates a set that contains all of the elements of the specified Collection in the order returned by the iterator of the Collection. |
|
ArraySet(int initialCapacity)Creates an empty set whose size is the specified initial capacity. |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)Adds the specified element to the end of the set if the element is not already present in the set. |
boolean |
equals(java.lang.Object o)Determines whether the specified Object contains the same set of elements as this ArraySet. |
int |
hashCode()Gets the hash code value for the ArraySet, which is the sum of all of the hash codes of the elements of the set. |
| Methods inherited from class java.util.ArrayList |
|---|
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from interface java.util.List |
|---|
containsAll, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public ArraySet()
public ArraySet(java.util.Collection c)
Collection in the order returned by the iterator of the Collection.
c - A Collection that has the elements that you want the ArraySet to have.public ArraySet(int initialCapacity)
initialCapacity - An integer that specifies an initial size for the ArraySet.| Method Detail |
|---|
public boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Listadd in interface java.util.Setadd in class java.util.ArrayListo - The element to add to the set.boolean that is true if this method adds the element to the set or false if it does not.public boolean equals(java.lang.Object o)
Object contains the same set of elements as this ArraySet.equals in interface java.util.Collectionequals in interface java.util.Listequals in interface java.util.Setequals in class java.util.AbstractListo - The Object to compare to the ArraySet.boolean that is true if the elements of the ArraySet are the same as the specified Object or false if they are not.public int hashCode()
ArraySet, which is the sum of all of the hash codes of the elements of the set. The hash code of a null element is zero.hashCode in interface java.util.CollectionhashCode in interface java.util.ListhashCode in interface java.util.SethashCode in class java.util.AbstractListArraySet.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||