public interface IntCollection extends Collection<Integer>
Collection
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
IntSet . |
int[] |
toPrimitiveArray() |
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)
IntSet
.int[] toPrimitiveArray()
Copyright © 2012. All Rights Reserved.