@ThreadSafe public final class SynchronizedShortSet extends AbstractSynchronizedShortCollection implements com.gs.collections.api.set.primitive.MutableShortSet
MutableShortSet. It is imperative that the user manually synchronize on the collection when iterating over it using the
ShortIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveSet.stg.
MutableShortSet.asSynchronized(),
MutableSet.asSynchronized(),
Serialized Form| 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 SynchronizedShortSet |
of(com.gs.collections.api.set.primitive.MutableShortSet set)
This method will take a MutableShortSet and wrap it directly in a SynchronizedShortSet.
|
static SynchronizedShortSet |
of(com.gs.collections.api.set.primitive.MutableShortSet set,
java.lang.Object lock)
This method will take a MutableShortSet and wrap it directly in a SynchronizedShortSet.
|
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.
|
SynchronizedShortSet |
with(short element) |
SynchronizedShortSet |
withAll(com.gs.collections.api.ShortIterable elements) |
SynchronizedShortSet |
without(short element) |
SynchronizedShortSet |
withoutAll(com.gs.collections.api.ShortIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, getLock, getShortCollection, 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAll, shortIteratorallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic static SynchronizedShortSet of(com.gs.collections.api.set.primitive.MutableShortSet set)
public static SynchronizedShortSet of(com.gs.collections.api.set.primitive.MutableShortSet set, java.lang.Object lock)
public SynchronizedShortSet without(short element)
without in interface com.gs.collections.api.collection.primitive.MutableShortCollectionwithout in interface com.gs.collections.api.set.primitive.MutableShortSetwithout in class AbstractSynchronizedShortCollectionpublic SynchronizedShortSet with(short element)
with in interface com.gs.collections.api.collection.primitive.MutableShortCollectionwith in interface com.gs.collections.api.set.primitive.MutableShortSetwith in class AbstractSynchronizedShortCollectionpublic SynchronizedShortSet 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 AbstractSynchronizedShortCollectionpublic SynchronizedShortSet 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 AbstractSynchronizedShortCollectionpublic 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 AbstractSynchronizedShortCollectionpublic 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 AbstractSynchronizedShortCollectionpublic <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 AbstractSynchronizedShortCollectionpublic 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 AbstractSynchronizedShortCollectionpublic 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 AbstractSynchronizedShortCollectionpublic 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 AbstractSynchronizedShortCollectionpublic 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 AbstractSynchronizedShortCollection