@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 FormModifier and Type | Method and Description |
---|---|
LazyShortIterable |
asLazy() |
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 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) |
MutableShortSet |
select(ShortPredicate 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, toString
add, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAll, shortIterator
allSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public static SynchronizedShortSet of(MutableShortSet set)
public static SynchronizedShortSet of(MutableShortSet set, Object lock)
public SynchronizedShortSet without(short element)
without
in interface MutableShortCollection
without
in interface MutableShortSet
without
in class AbstractSynchronizedShortCollection
public SynchronizedShortSet with(short element)
with
in interface MutableShortCollection
with
in interface MutableShortSet
with
in class AbstractSynchronizedShortCollection
public SynchronizedShortSet withAll(ShortIterable elements)
withAll
in interface MutableShortCollection
withAll
in interface MutableShortSet
withAll
in class AbstractSynchronizedShortCollection
public SynchronizedShortSet withoutAll(ShortIterable elements)
withoutAll
in interface MutableShortCollection
withoutAll
in interface MutableShortSet
withoutAll
in class AbstractSynchronizedShortCollection
public MutableShortSet select(ShortPredicate predicate)
select
in interface MutableShortCollection
select
in interface MutableShortSet
select
in interface ShortSet
select
in interface ShortIterable
select
in class AbstractSynchronizedShortCollection
public MutableShortSet reject(ShortPredicate predicate)
reject
in interface MutableShortCollection
reject
in interface MutableShortSet
reject
in interface ShortSet
reject
in interface ShortIterable
reject
in class AbstractSynchronizedShortCollection
public <V> MutableSet<V> collect(ShortToObjectFunction<? extends V> function)
collect
in interface MutableShortCollection
collect
in interface MutableShortSet
collect
in interface ShortSet
collect
in interface ShortIterable
collect
in class AbstractSynchronizedShortCollection
public boolean equals(Object otherSet)
ShortSet
Set.equals(Object)
.public int hashCode()
ShortSet
Set.hashCode()
.public LazyShortIterable asLazy()
asLazy
in interface ShortIterable
asLazy
in class AbstractSynchronizedShortCollection
public MutableShortSet asUnmodifiable()
asUnmodifiable
in interface MutableShortCollection
asUnmodifiable
in interface MutableShortSet
asUnmodifiable
in class AbstractSynchronizedShortCollection
public MutableShortSet asSynchronized()
asSynchronized
in interface MutableShortCollection
asSynchronized
in interface MutableShortSet
asSynchronized
in class AbstractSynchronizedShortCollection
public ShortSet freeze()
MutableShortSet
freeze
in interface MutableShortSet
freeze
in interface ShortSet
public ImmutableShortSet toImmutable()
MutableShortSet
toImmutable
in interface MutableShortCollection
toImmutable
in interface MutableShortSet
toImmutable
in interface ShortSet
toImmutable
in class AbstractSynchronizedShortCollection
Copyright © 2004–2016. All rights reserved.