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 IntCollection
boolean addAll(IntCollection ints)
addAll
in interface IntCollection
boolean contains(int i)
contains
in interface IntCollection
boolean containsAll(IntCollection ints)
containsAll
in interface IntCollection
IntIterator iterator()
boolean remove(int i)
remove
in interface IntCollection
boolean removeAll(IntCollection ints)
removeAll
in interface IntCollection
boolean retainAll(IntCollection ints)
IntCollection
.retainAll
in interface IntCollection
int[] toPrimitiveArray()
toPrimitiveArray
in interface IntCollection
Copyright © 2012. All Rights Reserved.