@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, toStringadd, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic static UnmodifiableIntSet of(MutableIntSet set)
public UnmodifiableIntSet with(int element)
with in interface MutableIntCollectionwith in interface MutableIntSetwith in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntSet without(int element)
without in interface MutableIntCollectionwithout in interface MutableIntSetwithout in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntSet withAll(IntIterable elements)
withAll in interface MutableIntCollectionwithAll in interface MutableIntSetwithAll in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntSet withoutAll(IntIterable elements)
withoutAll in interface MutableIntCollectionwithoutAll in interface MutableIntSetwithoutAll in class AbstractUnmodifiableIntCollectionpublic MutableIntSet select(IntPredicate predicate)
select in interface MutableIntCollectionselect in interface IntIterableselect in interface IntSetselect in interface MutableIntSetselect in class AbstractUnmodifiableIntCollectionpublic MutableIntSet reject(IntPredicate predicate)
reject in interface MutableIntCollectionreject in interface IntIterablereject in interface IntSetreject in interface MutableIntSetreject in class AbstractUnmodifiableIntCollectionpublic <V> MutableSet<V> collect(IntToObjectFunction<? extends V> function)
collect in interface MutableIntCollectioncollect in interface IntIterablecollect in interface IntSetcollect in interface MutableIntSetcollect in class AbstractUnmodifiableIntCollectionpublic boolean equals(Object otherSet)
IntSetSet.equals(Object).public int hashCode()
IntSetSet.hashCode().public MutableIntSet asUnmodifiable()
asUnmodifiable in interface MutableIntCollectionasUnmodifiable in interface MutableIntSetasUnmodifiable in class AbstractUnmodifiableIntCollectionpublic MutableIntSet asSynchronized()
asSynchronized in interface MutableIntCollectionasSynchronized in interface MutableIntSetasSynchronized in class AbstractUnmodifiableIntCollectionpublic IntSet freeze()
MutableIntSetfreeze in interface IntSetfreeze in interface MutableIntSetpublic ImmutableIntSet toImmutable()
MutableIntSettoImmutable in interface MutableIntCollectiontoImmutable in interface IntSettoImmutable in interface MutableIntSettoImmutable in class AbstractUnmodifiableIntCollectionCopyright © 2004–2016. All rights reserved.