@NotThreadSafe public final class UnmodifiableShortSet extends AbstractUnmodifiableShortCollection implements com.gs.collections.api.set.primitive.MutableShortSet
| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.LazyShortIterable |
asLazy() |
com.gs.collections.api.set.primitive.MutableShortSet |
asSynchronized() |
com.gs.collections.api.set.primitive.MutableShortSet |
asUnmodifiable() |
<V> com.gs.collections.api.set.MutableSet<V> |
collect(com.gs.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function) |
boolean |
equals(java.lang.Object otherSet)
Follows the same general contract as
Set.equals(Object). |
com.gs.collections.api.set.primitive.ShortSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
static UnmodifiableShortSet |
of(com.gs.collections.api.set.primitive.MutableShortSet set)
This method will take a MutableShortSet and wrap it directly in a UnmodifiableShortSet.
|
com.gs.collections.api.set.primitive.MutableShortSet |
reject(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate) |
com.gs.collections.api.set.primitive.MutableShortSet |
select(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate) |
com.gs.collections.api.set.primitive.ImmutableShortSet |
toImmutable()
Returns an immutable copy of this set.
|
UnmodifiableShortSet |
with(short element) |
UnmodifiableShortSet |
withAll(com.gs.collections.api.ShortIterable elements) |
UnmodifiableShortSet |
without(short element) |
UnmodifiableShortSet |
withoutAll(com.gs.collections.api.ShortIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, getShortCollection, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, shortIterator, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, shortIterator, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic static UnmodifiableShortSet of(com.gs.collections.api.set.primitive.MutableShortSet set)
public UnmodifiableShortSet with(short element)
with in interface com.gs.collections.api.collection.primitive.MutableShortCollectionwith in interface com.gs.collections.api.set.primitive.MutableShortSetwith in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortSet without(short element)
without in interface com.gs.collections.api.collection.primitive.MutableShortCollectionwithout in interface com.gs.collections.api.set.primitive.MutableShortSetwithout in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortSet withAll(com.gs.collections.api.ShortIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableShortCollectionwithAll in interface com.gs.collections.api.set.primitive.MutableShortSetwithAll in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortSet withoutAll(com.gs.collections.api.ShortIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableShortCollectionwithoutAll in interface com.gs.collections.api.set.primitive.MutableShortSetwithoutAll in class AbstractUnmodifiableShortCollectionpublic com.gs.collections.api.set.primitive.MutableShortSet select(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate)
select in interface com.gs.collections.api.collection.primitive.MutableShortCollectionselect in interface com.gs.collections.api.set.primitive.MutableShortSetselect in interface com.gs.collections.api.set.primitive.ShortSetselect in interface com.gs.collections.api.ShortIterableselect in class AbstractUnmodifiableShortCollectionpublic com.gs.collections.api.set.primitive.MutableShortSet reject(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate)
reject in interface com.gs.collections.api.collection.primitive.MutableShortCollectionreject in interface com.gs.collections.api.set.primitive.MutableShortSetreject in interface com.gs.collections.api.set.primitive.ShortSetreject in interface com.gs.collections.api.ShortIterablereject in class AbstractUnmodifiableShortCollectionpublic <V> com.gs.collections.api.set.MutableSet<V> collect(com.gs.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.collection.primitive.MutableShortCollectioncollect in interface com.gs.collections.api.set.primitive.MutableShortSetcollect in interface com.gs.collections.api.set.primitive.ShortSetcollect in interface com.gs.collections.api.ShortIterablecollect in class AbstractUnmodifiableShortCollectionpublic boolean equals(java.lang.Object otherSet)
com.gs.collections.api.set.primitive.ShortSetSet.equals(Object).equals in interface com.gs.collections.api.set.primitive.ShortSetequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.set.primitive.ShortSetSet.hashCode().hashCode in interface com.gs.collections.api.set.primitive.ShortSethashCode in class java.lang.Objectpublic com.gs.collections.api.LazyShortIterable asLazy()
asLazy in interface com.gs.collections.api.ShortIterableasLazy in class AbstractUnmodifiableShortCollectionpublic com.gs.collections.api.set.primitive.MutableShortSet asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableShortCollectionasUnmodifiable in interface com.gs.collections.api.set.primitive.MutableShortSetasUnmodifiable in class AbstractUnmodifiableShortCollectionpublic com.gs.collections.api.set.primitive.MutableShortSet asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableShortCollectionasSynchronized in interface com.gs.collections.api.set.primitive.MutableShortSetasSynchronized in class AbstractUnmodifiableShortCollectionpublic com.gs.collections.api.set.primitive.ShortSet freeze()
com.gs.collections.api.set.primitive.MutableShortSetfreeze in interface com.gs.collections.api.set.primitive.MutableShortSetfreeze in interface com.gs.collections.api.set.primitive.ShortSetpublic com.gs.collections.api.set.primitive.ImmutableShortSet toImmutable()
com.gs.collections.api.set.primitive.MutableShortSettoImmutable in interface com.gs.collections.api.collection.primitive.MutableShortCollectiontoImmutable in interface com.gs.collections.api.set.primitive.MutableShortSettoImmutable in interface com.gs.collections.api.set.primitive.ShortSettoImmutable in class AbstractUnmodifiableShortCollection