IntSets.immutableRangeSet(int) instead.@Deprecated public class RangeSet extends Object implements IntSet
0 to size - 1 (inclusive).| Constructor and Description |
|---|
RangeSet(int size)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int i)
Deprecated.
Adds the given int to this set and returns
true if it was set or false if it was already present |
boolean |
add(Integer integer)
Deprecated.
|
boolean |
addAll(Collection<? extends Integer> c)
Deprecated.
|
boolean |
addAll(IntSet set)
Deprecated.
Adds all ints from the provided set into this one
|
void |
clear()
Deprecated.
|
boolean |
contains(int i)
Deprecated.
Whether this set contains the given int
|
boolean |
contains(Object o)
Deprecated.
|
boolean |
containsAll(Collection<?> c)
Deprecated.
|
boolean |
containsAll(IntSet set)
Deprecated.
Whether this set contains all ints in the given IntSet
|
boolean |
equals(Object o)
Deprecated.
|
void |
forEach(Consumer<? super Integer> action)
Deprecated.
|
void |
forEach(IntConsumer action)
Deprecated.
Performs the given action for each int of the
IntSet
until all elements have been processed or the action throws an
exception. |
int |
hashCode()
Deprecated.
|
Spliterator.OfInt |
intSpliterator()
Deprecated.
Creates a
Spliterator.OfInt over the ints in this set. |
IntStream |
intStream()
Deprecated.
A stream of ints representing the data in this set
|
boolean |
isEmpty()
Deprecated.
|
PrimitiveIterator.OfInt |
iterator()
Deprecated.
A primtive iterator that allows iteration over the int values.
|
boolean |
remove(int i)
Deprecated.
Removes, if present, the int from the set and returns if it was present or not
|
boolean |
remove(Object o)
Deprecated.
|
boolean |
removeAll(Collection<?> c)
Deprecated.
|
boolean |
removeAll(IntSet set)
Deprecated.
Removes all ints from this IntSet that are in the provided IntSet
|
boolean |
removeIf(IntPredicate filter)
Deprecated.
Removes all of the ints of this set that satisfy the given
predicate.
|
boolean |
retainAll(Collection<?> c)
Deprecated.
|
boolean |
retainAll(IntSet c)
Deprecated.
Modifies this set to remove all ints that are not present in the provided IntSet
|
void |
set(int i)
Deprecated.
Adds or sets the int without returning whether it was previously set
|
int |
size()
Deprecated.
|
Object[] |
toArray()
Deprecated.
|
<T> T[] |
toArray(T[] a)
Deprecated.
|
int[] |
toIntArray()
Deprecated.
Returns an array containing all of the elements in this set.
|
String |
toString()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratorparallelStream, removeIfpublic int size()
public boolean isEmpty()
public boolean contains(Object o)
public boolean contains(int i)
IntSetpublic PrimitiveIterator.OfInt iterator()
IntSetpublic int[] toIntArray()
IntSettoIntArray in interface IntSetpublic Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(Integer integer)
public boolean remove(Object o)
public boolean remove(int i)
IntSetpublic boolean containsAll(Collection<?> c)
containsAll in interface Collection<Integer>containsAll in interface Set<Integer>public boolean containsAll(IntSet set)
IntSetcontainsAll in interface IntSetset - the set to check if all are presentpublic boolean add(int i)
IntSettrue if it was set or false if it was already presentpublic void set(int i)
IntSetpublic boolean addAll(IntSet set)
IntSetpublic boolean addAll(Collection<? extends Integer> c)
public boolean retainAll(Collection<?> c)
public boolean retainAll(IntSet c)
IntSetpublic boolean removeAll(IntSet set)
IntSetpublic boolean removeAll(Collection<?> c)
public void clear()
public boolean equals(Object o)
public IntStream intStream()
IntSetpublic void forEach(IntConsumer action)
IntSetIntSet
until all elements have been processed or the action throws an
exception. Unless otherwise specified by the implementing class,
actions are performed in the order of iteration (if an iteration order
is specified). Exceptions thrown by the action are relayed to the
caller.public Spliterator.OfInt intSpliterator()
IntSetSpliterator.OfInt over the ints in this set.
The Spliterator.OfInt reports Spliterator.DISTINCT.
Implementations should document the reporting of additional
characteristic values.
intSpliterator in interface IntSetSpliterator.OfInt over the ints in this setpublic boolean removeIf(IntPredicate filter)
IntSetpublic int hashCode()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.