MutableShortCollection, PrimitiveIterable, MutableShortSet, ShortSet, ShortIterablepublic final 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(java.lang.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) |
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, 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, toStringadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAll, shortIteratortapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic UnmodifiableShortSet(MutableShortSet set)
public static UnmodifiableShortSet of(MutableShortSet set)
public UnmodifiableShortSet with(short element)
with in interface MutableShortCollectionwith in interface MutableShortSetwith in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortSet without(short element)
without in interface MutableShortCollectionwithout in interface MutableShortSetwithout in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortSet withAll(ShortIterable elements)
withAll in interface MutableShortCollectionwithAll in interface MutableShortSetwithAll in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortSet withoutAll(ShortIterable elements)
withoutAll in interface MutableShortCollectionwithoutAll in interface MutableShortSetwithoutAll in class AbstractUnmodifiableShortCollectionpublic MutableShortSet select(ShortPredicate predicate)
ShortIterableselect in interface MutableShortCollectionselect in interface MutableShortSetselect in interface ShortIterableselect in interface ShortSetselect in class AbstractUnmodifiableShortCollectionpublic MutableShortSet reject(ShortPredicate predicate)
ShortIterablereject in interface MutableShortCollectionreject in interface MutableShortSetreject in interface ShortIterablereject in interface ShortSetreject in class AbstractUnmodifiableShortCollectionpublic <V> MutableSet<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterablecollect in interface MutableShortCollectioncollect in interface MutableShortSetcollect in interface ShortIterablecollect in interface ShortSetcollect in class AbstractUnmodifiableShortCollectionpublic boolean equals(java.lang.Object otherSet)
ShortSetSet.equals(Object).public int hashCode()
ShortSetSet.hashCode().public MutableShortSet asUnmodifiable()
asUnmodifiable in interface MutableShortCollectionasUnmodifiable in interface MutableShortSetasUnmodifiable in class AbstractUnmodifiableShortCollectionpublic MutableShortSet asSynchronized()
asSynchronized in interface MutableShortCollectionasSynchronized in interface MutableShortSetasSynchronized in class AbstractUnmodifiableShortCollectionpublic ShortSet freeze()
MutableShortSetfreeze in interface MutableShortSetfreeze in interface ShortSetpublic ImmutableShortSet toImmutable()
MutableShortSettoImmutable in interface MutableShortCollectiontoImmutable in interface MutableShortSettoImmutable in interface ShortSettoImmutable in class AbstractUnmodifiableShortCollectionCopyright © 2004–2017. All rights reserved.