public abstract class AbstractIntSet extends AbstractSet<Integer> implements IntSet
IntSet
Constructor and Description |
---|
AbstractIntSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(int i) |
boolean |
addAll(IntCollection ints) |
boolean |
containsAll(IntCollection ints) |
abstract 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() |
equals, hashCode, removeAll
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, size, toArray, toArray, toString
public boolean add(int i)
add
in interface IntCollection
add
in interface IntSet
public boolean addAll(IntCollection ints)
addAll
in interface IntCollection
addAll
in interface IntSet
public boolean containsAll(IntCollection ints)
containsAll
in interface IntCollection
containsAll
in interface IntSet
public abstract IntIterator iterator()
iterator
in interface IntCollection
iterator
in interface IntSet
iterator
in interface Iterable<Integer>
iterator
in interface Collection<Integer>
iterator
in interface Set<Integer>
iterator
in class AbstractCollection<Integer>
public boolean remove(int i)
remove
in interface IntCollection
remove
in interface IntSet
public boolean removeAll(IntCollection ints)
removeAll
in interface IntCollection
removeAll
in interface IntSet
public boolean retainAll(IntCollection ints)
IntSet
.retainAll
in interface IntCollection
retainAll
in interface IntSet
public int[] toPrimitiveArray()
toPrimitiveArray
in interface IntCollection
toPrimitiveArray
in interface IntSet
Copyright © 2012. All Rights Reserved.