|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.collections.ints.AbstractIntCollection
Constructor Summary | |
AbstractIntCollection()
|
Method Summary | |
boolean |
add(int e)
Attempts to add the specified number to this collection. |
boolean |
addAll(IntCollection c)
Attempts to add to this collection all the numbers contained in the specified collection. |
void |
clear()
Removes all the numbers from this collection. |
boolean |
contains(int e)
Returns true if this collection contains specified number; false otherwise. |
boolean |
containsAll(IntCollection c)
Returns true if this collection contains all the numbers from collection c; false otherwise. |
boolean |
isEmpty()
Returns true if this collection is empty; false otherwise. |
abstract IntIterator |
iterator()
Returns the iterator over numbers contained in this collection. |
boolean |
remove(int e)
Attempts to remove the specified number from this collection. |
boolean |
removeAll(IntCollection c)
Attempts to remove from this collection all the numbers contained in the specified collection. |
boolean |
retainAll(IntCollection c)
Attempts to remove from this collection all the numbers not contained in the specified collection. |
int |
size()
Returns the number of elements in this collection. |
int |
size64()
Returns the number of elements in this collection. |
int[] |
toArray()
Returns the newly allocated array containing all numbers from this collection, in the order returned by its iterator. |
int[] |
toArray(int[] a)
Returns an array containing all of the numbers in this collection. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.emory.mathcs.util.collections.ints.IntCollection |
equals, hashCode |
Constructor Detail |
public AbstractIntCollection()
Method Detail |
public int size()
IntCollection
size
in interface IntCollection
public int size64()
IntCollection
size64
in interface IntCollection
public boolean isEmpty()
IntCollection
isEmpty
in interface IntCollection
public boolean contains(int e)
IntCollection
contains
in interface IntCollection
public abstract IntIterator iterator()
IntCollection
iterator
in interface IntCollection
public int[] toArray()
IntCollection
toArray
in interface IntCollection
public int[] toArray(int[] a)
IntCollection
If this collection makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order.
Like the IntCollection.toArray()
method, this method acts as bridge between
array-based and collection-based APIs. Further, this method may,
under certain circumstances, be used to save allocation costs.
toArray
in interface IntCollection
a
- the array into which the elements of this collection are to be
stored, if it is big enough; otherwise, a new array is allocated
for this purpose.
public boolean add(int e)
IntCollection
add
in interface IntCollection
e
- number to be added to this collection
public boolean remove(int e)
IntCollection
remove
in interface IntCollection
e
- number to be removed from this collection
public boolean containsAll(IntCollection c)
IntCollection
containsAll
in interface IntCollection
public boolean addAll(IntCollection c)
IntCollection
addAll
in interface IntCollection
c
- a collection of numbers to be added to this collection
public boolean retainAll(IntCollection c)
IntCollection
retainAll
in interface IntCollection
c
- a collection of numbers to be retained in this collection
public boolean removeAll(IntCollection c)
IntCollection
removeAll
in interface IntCollection
c
- a collection of numbers to be removed from this collection
public void clear()
IntCollection
clear
in interface IntCollection
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |