@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, toStringadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAll, shortIteratorallSatisfy, 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 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)
select in interface MutableShortCollectionselect in interface MutableShortSetselect in interface ShortSetselect in interface ShortIterableselect in class AbstractUnmodifiableShortCollectionpublic MutableShortSet reject(ShortPredicate predicate)
reject in interface MutableShortCollectionreject in interface MutableShortSetreject in interface ShortSetreject in interface ShortIterablereject in class AbstractUnmodifiableShortCollectionpublic <V> MutableSet<V> collect(ShortToObjectFunction<? extends V> function)
collect in interface MutableShortCollectioncollect in interface MutableShortSetcollect in interface ShortSetcollect in interface ShortIterablecollect in class AbstractUnmodifiableShortCollectionpublic boolean equals(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–2016. All rights reserved.