Serializable, MutableShortCollection, PrimitiveIterable, MutableShortSet, ShortSet, ShortIterable@ThreadSafe public final class SynchronizedShortSet extends AbstractSynchronizedShortCollection implements 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| Constructor | Description |
|---|---|
SynchronizedShortSet(MutableShortSet set) |
|
SynchronizedShortSet(MutableShortSet set,
Object newLock) |
| Modifier and Type | Method | Description |
|---|---|---|
LazyShortIterable |
asLazy() |
Returns a LazyShortIterable adapter wrapping the source ShortIterable.
|
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(). |
static SynchronizedShortSet |
of(MutableShortSet set) |
This method will take a MutableShortSet and wrap it directly in a SynchronizedShortSet.
|
static SynchronizedShortSet |
of(MutableShortSet set,
Object lock) |
This method will take a MutableShortSet and wrap it directly in a SynchronizedShortSet.
|
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.
|
SynchronizedShortSet |
with(short element) |
|
SynchronizedShortSet |
withAll(ShortIterable elements) |
|
SynchronizedShortSet |
without(short element) |
|
SynchronizedShortSet |
withoutAll(ShortIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, 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, shortIteratorappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringallSatisfy, anySatisfy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic SynchronizedShortSet(MutableShortSet set)
public SynchronizedShortSet(MutableShortSet set, Object newLock)
public static SynchronizedShortSet of(MutableShortSet set)
public static SynchronizedShortSet of(MutableShortSet set, Object lock)
public SynchronizedShortSet without(short element)
without in interface MutableShortCollectionwithout in interface MutableShortSetwithout in class AbstractSynchronizedShortCollectionpublic SynchronizedShortSet with(short element)
with in interface MutableShortCollectionwith in interface MutableShortSetwith in class AbstractSynchronizedShortCollectionpublic SynchronizedShortSet withAll(ShortIterable elements)
withAll in interface MutableShortCollectionwithAll in interface MutableShortSetwithAll in class AbstractSynchronizedShortCollectionpublic SynchronizedShortSet withoutAll(ShortIterable elements)
withoutAll in interface MutableShortCollectionwithoutAll in interface MutableShortSetwithoutAll in class AbstractSynchronizedShortCollectionpublic MutableShortSet select(ShortPredicate predicate)
ShortIterableselect in interface MutableShortCollectionselect in interface MutableShortSetselect in interface ShortIterableselect in interface ShortSetselect in class AbstractSynchronizedShortCollectionpublic MutableShortSet reject(ShortPredicate predicate)
ShortIterablereject in interface MutableShortCollectionreject in interface MutableShortSetreject in interface ShortIterablereject in interface ShortSetreject in class AbstractSynchronizedShortCollectionpublic <V> MutableSet<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterablecollect in interface MutableShortCollectioncollect in interface MutableShortSetcollect in interface ShortIterablecollect in interface ShortSetcollect in class AbstractSynchronizedShortCollectionpublic boolean equals(Object otherSet)
ShortSetSet.equals(Object).public int hashCode()
ShortSetSet.hashCode().public LazyShortIterable asLazy()
ShortIterableasLazy in interface ShortIterableasLazy in class AbstractSynchronizedShortCollectionpublic MutableShortSet asUnmodifiable()
asUnmodifiable in interface MutableShortCollectionasUnmodifiable in interface MutableShortSetasUnmodifiable in class AbstractSynchronizedShortCollectionpublic MutableShortSet asSynchronized()
asSynchronized in interface MutableShortCollectionasSynchronized in interface MutableShortSetasSynchronized in class AbstractSynchronizedShortCollectionpublic ShortSet freeze()
MutableShortSetfreeze in interface MutableShortSetfreeze in interface ShortSetpublic ImmutableShortSet toImmutable()
MutableShortSettoImmutable in interface MutableShortCollectiontoImmutable in interface MutableShortSettoImmutable in interface ShortSettoImmutable in class AbstractSynchronizedShortCollectionCopyright © 2004–2017. All rights reserved.