@NotThreadSafe public final class UnmodifiableIntSet extends AbstractUnmodifiableIntCollection implements MutableIntSet
Modifier and Type | Method and Description |
---|---|
MutableIntSet |
asSynchronized() |
MutableIntSet |
asUnmodifiable() |
<V> MutableSet<V> |
collect(IntToObjectFunction<? extends V> function) |
boolean |
equals(Object otherSet)
Follows the same general contract as
Set.equals(Object) . |
IntSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode() . |
static UnmodifiableIntSet |
of(MutableIntSet set)
This method will take a MutableIntSet and wrap it directly in a UnmodifiableIntSet.
|
MutableIntSet |
reject(IntPredicate predicate) |
MutableIntSet |
select(IntPredicate predicate) |
ImmutableIntSet |
toImmutable()
Returns an immutable copy of this set.
|
UnmodifiableIntSet |
with(int element) |
UnmodifiableIntSet |
withAll(IntIterable elements) |
UnmodifiableIntSet |
without(int element) |
UnmodifiableIntSet |
withoutAll(IntIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, intIterator, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
add, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, retainAll, retainAll
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public static UnmodifiableIntSet of(MutableIntSet set)
public UnmodifiableIntSet with(int element)
with
in interface MutableIntCollection
with
in interface MutableIntSet
with
in class AbstractUnmodifiableIntCollection
public UnmodifiableIntSet without(int element)
without
in interface MutableIntCollection
without
in interface MutableIntSet
without
in class AbstractUnmodifiableIntCollection
public UnmodifiableIntSet withAll(IntIterable elements)
withAll
in interface MutableIntCollection
withAll
in interface MutableIntSet
withAll
in class AbstractUnmodifiableIntCollection
public UnmodifiableIntSet withoutAll(IntIterable elements)
withoutAll
in interface MutableIntCollection
withoutAll
in interface MutableIntSet
withoutAll
in class AbstractUnmodifiableIntCollection
public MutableIntSet select(IntPredicate predicate)
select
in interface MutableIntCollection
select
in interface IntIterable
select
in interface IntSet
select
in interface MutableIntSet
select
in class AbstractUnmodifiableIntCollection
public MutableIntSet reject(IntPredicate predicate)
reject
in interface MutableIntCollection
reject
in interface IntIterable
reject
in interface IntSet
reject
in interface MutableIntSet
reject
in class AbstractUnmodifiableIntCollection
public <V> MutableSet<V> collect(IntToObjectFunction<? extends V> function)
collect
in interface MutableIntCollection
collect
in interface IntIterable
collect
in interface IntSet
collect
in interface MutableIntSet
collect
in class AbstractUnmodifiableIntCollection
public boolean equals(Object otherSet)
IntSet
Set.equals(Object)
.public int hashCode()
IntSet
Set.hashCode()
.public MutableIntSet asUnmodifiable()
asUnmodifiable
in interface MutableIntCollection
asUnmodifiable
in interface MutableIntSet
asUnmodifiable
in class AbstractUnmodifiableIntCollection
public MutableIntSet asSynchronized()
asSynchronized
in interface MutableIntCollection
asSynchronized
in interface MutableIntSet
asSynchronized
in class AbstractUnmodifiableIntCollection
public IntSet freeze()
MutableIntSet
freeze
in interface IntSet
freeze
in interface MutableIntSet
public ImmutableIntSet toImmutable()
MutableIntSet
toImmutable
in interface MutableIntCollection
toImmutable
in interface IntSet
toImmutable
in interface MutableIntSet
toImmutable
in class AbstractUnmodifiableIntCollection
Copyright © 2004–2016. All rights reserved.