public interface IntSet extends Set<Integer>, IntCollection
Set interface for implementations that store
int values. Implementations are expected to provide increased
performance through primitive int methods and storage rather than
using Integer-based operations that the exiting Collections libraries
use.| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int i) |
boolean |
addAll(IntCollection ints) |
boolean |
contains(int i) |
boolean |
containsAll(IntCollection ints) |
IntIterator |
iterator() |
boolean |
remove(int i) |
boolean |
removeAll(IntCollection ints) |
boolean |
retainAll(IntCollection ints)
Retains only the elements in this set that are contained in the specified
IntCollection. |
int[] |
toPrimitiveArray() |
boolean add(int i)
add in interface IntCollectionboolean addAll(IntCollection ints)
addAll in interface IntCollectionboolean contains(int i)
contains in interface IntCollectionboolean containsAll(IntCollection ints)
containsAll in interface IntCollectionIntIterator iterator()
boolean remove(int i)
remove in interface IntCollectionboolean removeAll(IntCollection ints)
removeAll in interface IntCollectionboolean retainAll(IntCollection ints)
IntCollection.retainAll in interface IntCollectionint[] toPrimitiveArray()
toPrimitiveArray in interface IntCollectionCopyright © 2012. All Rights Reserved.