Interface IntSet
-
- All Known Implementing Classes:
BitSetIntSet,ImmutableIntSet
public interface IntSet extends Set<Integer>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanadd(int element)Adds the specified element to this set.booleancontains(int element)Returns true if this set contains the specified element.booleanremove(int element)Removes the specified element from this set.int[]toIntArray()Returns array with primitive types-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
contains
boolean contains(int element)
Returns true if this set contains the specified element.
-
add
boolean add(int element)
Adds the specified element to this set.
-
remove
boolean remove(int element)
Removes the specified element from this set.
-
toIntArray
int[] toIntArray()
Returns array with primitive types
-
-