| Modifier and Type | Method and Description |
|---|---|
static IntSet |
concurrentCopyFrom(IntSet intSet,
int maxExclusive)
Returns a copy of the given set that supports concurrent operations.
|
static IntSet |
concurrentSet(int maxExclusive)
Returns a concurrent mutable IntSet that can store values in the range of
0..maxExclusive-1 |
static IntSet |
from(PrimitiveIterator.OfInt iterator)
Returns an IntSet based on the ints in the iterator.
|
static IntSet |
from(Set<Integer> integerSet)
Returns an IntSet based on the provided Set.
|
static IntSet |
immutableEmptySet()
Returns an immutable IntSet containing no values
|
static IntSet |
immutableRangeSet(int endExclusive)
Returns an immutable IntSet containing all values from
0 to endExclusive - 1. |
static IntSet |
immutableSet(int value)
Returns an immutable IntSet containing a single value
|
static IntSet |
immutableSet(IntSet set)
Returns an immutable IntSet that wraps the given IntSet to prevent modifications.
|
static IntSet |
mutableCopyFrom(Set<Integer> mutableSet)
Returns an IntSet that contains all ints from the given Set that is mutable.
|
static IntSet |
mutableEmptySet()
Returns a mutable IntSet with no values set.
|
static IntSet |
mutableEmptySet(int maxExclusive)
Returns an IntSet that contains no values but is initialized to hold ints equal to the
maxExclusive -1 or
smaller. |
static IntSet |
mutableFrom(Set<Integer> integerSet)
Returns an IntSet that is mutable that contains all of the values from the given set.
|
static IntSet |
mutableSet(int value)
Returns a mutable set with the initial value set.
|
static IntSet |
mutableSet(int value1,
int value2)
Returns a mutable IntSet that begins with the initialized values
|
public static IntSet immutableEmptySet()
public static IntSet immutableSet(int value)
value - the value to be set on the IntSetpublic static IntSet immutableSet(IntSet set)
set - set to wrappublic static IntSet immutableRangeSet(int endExclusive)
0 to endExclusive - 1.endExclusive - the exclusive upper boundpublic static IntSet from(Set<Integer> integerSet)
integerSet - IntSet to create frompublic static IntSet from(PrimitiveIterator.OfInt iterator)
iterator - values set in the returned setpublic static IntSet mutableFrom(Set<Integer> integerSet)
integerSet - set to use values frompublic static IntSet mutableCopyFrom(Set<Integer> mutableSet)
mutableSet - set to copy frompublic static IntSet mutableEmptySet(int maxExclusive)
maxExclusive -1 or
smaller.maxExclusive - largest int expected in setpublic static IntSet mutableEmptySet()
mutableEmptySet(int) providing a 0 or similar.public static IntSet mutableSet(int value)
value - the value to setpublic static IntSet mutableSet(int value1, int value2)
value1 - value2 - public static IntSet concurrentSet(int maxExclusive)
0..maxExclusive-1maxExclusive - the maximum value - 1 that can be inserted into the setpublic static IntSet concurrentCopyFrom(IntSet intSet, int maxExclusive)
intSet - set to copy frommaxExclusive - the maximum value - 1 that can be inserted into the setCopyright © 2020 JBoss, a division of Red Hat. All rights reserved.