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