Package org.infinispan.commons.util
Class ImmutableIntSet
- java.lang.Object
- 
- org.infinispan.commons.util.ImmutableIntSet
 
- 
 @Deprecated public class ImmutableIntSet extends Object Deprecated.since 9.3 This class will no longer be public, please useIntSets.immutableSet(IntSet)Immutable wrapper forIntSet.- Since:
- 9.2
- Author:
- Dan Berindei
 
- 
- 
Constructor SummaryConstructors Constructor Description ImmutableIntSet(IntSet set)Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanadd(int i)Adds the given int to this set and returnstrueif it was set orfalseif it was already presentbooleanadd(Integer integer)booleanaddAll(Collection<? extends Integer> c)booleanaddAll(IntSet set)Deprecated.Adds all ints from the provided set into this onevoidclear()booleancontains(int i)Deprecated.Whether this set contains the given intbooleancontains(Object o)Deprecated.booleancontainsAll(Collection<?> c)Deprecated.booleancontainsAll(IntSet set)Deprecated.Whether this set contains all ints in the given IntSetvoidforEach(Consumer<? super Integer> action)Deprecated.voidforEach(IntConsumer action)Deprecated.Performs the given action for each int of theIntSetuntil all elements have been processed or the action throws an exception.Spliterator.OfIntintSpliterator()Deprecated.Creates aSpliterator.OfIntover the ints in this set.IntStreamintStream()Deprecated.A stream of ints representing the data in this setbooleanisEmpty()Deprecated.PrimitiveIterator.OfIntiterator()Deprecated.A primtive iterator that allows iteration over the int values.booleanremove(int i)Removes, if present, the int from the set and returns if it was present or notbooleanremove(Object o)booleanremoveAll(Collection<?> c)booleanremoveAll(IntSet set)Removes all ints from this IntSet that are in the provided IntSetbooleanremoveIf(IntPredicate filter)Removes all of the ints of this set that satisfy the given predicate.booleanremoveIf(Predicate<? super Integer> filter)booleanretainAll(Collection<?> c)booleanretainAll(IntSet c)Modifies this set to remove all ints that are not present in the provided IntSetvoidset(int i)Adds or sets the int without returning whether it was previously setintsize()Deprecated.Object[]toArray()Deprecated.<T> T[]toArray(T[] a)Deprecated.int[]toIntArray()Deprecated.Returns an array containing all of the elements in this set.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.CollectionparallelStream, toArray
 - 
Methods inherited from interface java.util.Setequals, hashCode, spliterator
 
- 
 
- 
- 
- 
Constructor Detail- 
ImmutableIntSetpublic ImmutableIntSet(IntSet set) Deprecated.
 
- 
 - 
Method Detail- 
containspublic boolean contains(int i) Deprecated.Description copied from interface:IntSetWhether this set contains the given int- Parameters:
- i- the int to check
- Returns:
- if the set contains the int
 
 - 
addAllpublic boolean addAll(IntSet set) Deprecated.Description copied from interface:IntSetAdds all ints from the provided set into this one
 - 
containsAllpublic boolean containsAll(IntSet set) Deprecated.Description copied from interface:IntSetWhether this set contains all ints in the given IntSet- Parameters:
- set- the set to check if all are present
- Returns:
- if the set contains all the ints
 
 - 
sizepublic int size() Deprecated.
 - 
isEmptypublic boolean isEmpty() Deprecated.
 - 
containspublic boolean contains(Object o) Deprecated.
 - 
iteratorpublic PrimitiveIterator.OfInt iterator() Deprecated.Description copied from interface:IntSetA primtive iterator that allows iteration over the int values. This iterator supports removal if the set is modifiable.- Returns:
- the iterator
 
 - 
toIntArraypublic int[] toIntArray() Deprecated.Description copied from interface:IntSetReturns an array containing all of the elements in this set. If this set makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order.- Returns:
- this int set as an array
 
 - 
toArraypublic Object[] toArray() Deprecated.
 - 
toArraypublic <T> T[] toArray(T[] a) Deprecated.
 - 
containsAllpublic boolean containsAll(Collection<?> c) Deprecated.
 - 
intStreampublic IntStream intStream() Deprecated.Description copied from interface:IntSetA stream of ints representing the data in this set- Returns:
- the stream
 
 - 
forEachpublic void forEach(IntConsumer action) Deprecated.Description copied from interface:IntSetPerforms the given action for each int of theIntSetuntil 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.- Parameters:
- action- The action to be performed for each element
 
 - 
intSpliteratorpublic Spliterator.OfInt intSpliterator() Deprecated.Description copied from interface:IntSetCreates aSpliterator.OfIntover the ints in this set.The Spliterator.OfIntreportsSpliterator.DISTINCT. Implementations should document the reporting of additional characteristic values.- Returns:
- a Spliterator.OfIntover the ints in this set
 
 - 
addpublic boolean add(int i) Description copied from interface:IntSetAdds the given int to this set and returnstrueif it was set orfalseif it was already present
 - 
setpublic void set(int i) Description copied from interface:IntSetAdds or sets the int without returning whether it was previously set
 - 
removepublic boolean remove(int i) Description copied from interface:IntSetRemoves, if present, the int from the set and returns if it was present or not
 - 
removepublic boolean remove(Object o) 
 - 
removeAllpublic boolean removeAll(IntSet set) Description copied from interface:IntSetRemoves all ints from this IntSet that are in the provided IntSet
 - 
removeAllpublic boolean removeAll(Collection<?> c) 
 - 
retainAllpublic boolean retainAll(IntSet c) Description copied from interface:IntSetModifies this set to remove all ints that are not present in the provided IntSet
 - 
retainAllpublic boolean retainAll(Collection<?> c) 
 - 
addpublic boolean add(Integer integer) 
 - 
addAllpublic boolean addAll(Collection<? extends Integer> c) 
 - 
clearpublic void clear() 
 - 
removeIfpublic boolean removeIf(Predicate<? super Integer> filter) - Specified by:
- removeIfin interface- Collection<Integer>
 
 - 
removeIfpublic boolean removeIf(IntPredicate filter) Description copied from interface:IntSetRemoves all of the ints of this set that satisfy the given predicate. Errors or runtime exceptions thrown during iteration or by the predicate are relayed to the caller.
 
- 
 
-