Serializable
, MutableShortCollection
, PrimitiveIterable
, MutableShortSet
, ShortSet
, ShortIterable
public class UnmodifiableShortSet extends AbstractUnmodifiableShortCollection implements MutableShortSet
Constructor | Description |
---|---|
UnmodifiableShortSet(MutableShortSet set) |
Modifier and Type | Method | Description |
---|---|---|
MutableShortSet |
asSynchronized() |
|
MutableShortSet |
asUnmodifiable() |
|
<V> MutableSet<V> |
collect(ShortToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
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() . |
MutableShortSet |
newEmpty() |
Creates a new empty mutable version of the same Set type.
|
static UnmodifiableShortSet |
of(MutableShortSet set) |
This method will take a MutableShortSet and wrap it directly in a UnmodifiableShortSet.
|
MutableShortSet |
reject(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
MutableShortSet |
select(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified 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, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, shortIterator, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
add, addAll, addAll, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll, shortIterator
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
public UnmodifiableShortSet(MutableShortSet set)
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)
ShortIterable
select
in interface MutableShortCollection
select
in interface MutableShortSet
select
in interface ShortIterable
select
in interface ShortSet
select
in class AbstractUnmodifiableShortCollection
public MutableShortSet reject(ShortPredicate predicate)
ShortIterable
reject
in interface MutableShortCollection
reject
in interface MutableShortSet
reject
in interface ShortIterable
reject
in interface ShortSet
reject
in class AbstractUnmodifiableShortCollection
public <V> MutableSet<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterable
collect
in interface MutableShortCollection
collect
in interface MutableShortSet
collect
in interface ShortIterable
collect
in interface ShortSet
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
public MutableShortSet newEmpty()
MutableShortSet
newEmpty
in interface MutableShortCollection
newEmpty
in interface MutableShortSet
Copyright © 2004–2019. All rights reserved.