Serializable
, MutableIntCollection
, IntIterable
, PrimitiveIterable
, IntSet
, MutableIntSet
@ThreadSafe public final class SynchronizedIntSet extends AbstractSynchronizedIntCollection implements MutableIntSet
MutableIntSet
. It is imperative that the user manually synchronize on the collection when iterating over it using the
IntIterator
, as per Collections.synchronizedCollection(Collection)
.
This file was automatically generated from template file synchronizedPrimitiveSet.stg.
MutableIntSet.asSynchronized()
,
MutableSet.asSynchronized()
,
Serialized FormConstructor | Description |
---|---|
SynchronizedIntSet(MutableIntSet set) |
|
SynchronizedIntSet(MutableIntSet set,
Object newLock) |
Modifier and Type | Method | Description |
---|---|---|
LazyIntIterable |
asLazy() |
Returns a LazyIntIterable adapter wrapping the source IntIterable.
|
MutableIntSet |
asSynchronized() |
|
MutableIntSet |
asUnmodifiable() |
|
<V> MutableSet<V> |
collect(IntToObjectFunction<? 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) . |
IntSet |
freeze() |
Returns a frozen copy of this set.
|
int |
hashCode() |
Follows the same general contract as
Set.hashCode() . |
static SynchronizedIntSet |
of(MutableIntSet set) |
This method will take a MutableIntSet and wrap it directly in a SynchronizedIntSet.
|
static SynchronizedIntSet |
of(MutableIntSet set,
Object lock) |
This method will take a MutableIntSet and wrap it directly in a SynchronizedIntSet.
|
MutableIntSet |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
MutableIntSet |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
ImmutableIntSet |
toImmutable() |
Returns an immutable copy of this set.
|
SynchronizedIntSet |
with(int element) |
|
SynchronizedIntSet |
withAll(IntIterable elements) |
|
SynchronizedIntSet |
without(int element) |
|
SynchronizedIntSet |
withoutAll(IntIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, intIterator, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
allSatisfy, 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, toSortedList
add, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, retainAll, retainAll
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public SynchronizedIntSet(MutableIntSet set)
public SynchronizedIntSet(MutableIntSet set, Object newLock)
public static SynchronizedIntSet of(MutableIntSet set)
public static SynchronizedIntSet of(MutableIntSet set, Object lock)
public SynchronizedIntSet without(int element)
without
in interface MutableIntCollection
without
in interface MutableIntSet
without
in class AbstractSynchronizedIntCollection
public SynchronizedIntSet with(int element)
with
in interface MutableIntCollection
with
in interface MutableIntSet
with
in class AbstractSynchronizedIntCollection
public SynchronizedIntSet withAll(IntIterable elements)
withAll
in interface MutableIntCollection
withAll
in interface MutableIntSet
withAll
in class AbstractSynchronizedIntCollection
public SynchronizedIntSet withoutAll(IntIterable elements)
withoutAll
in interface MutableIntCollection
withoutAll
in interface MutableIntSet
withoutAll
in class AbstractSynchronizedIntCollection
public MutableIntSet select(IntPredicate predicate)
IntIterable
select
in interface IntIterable
select
in interface IntSet
select
in interface MutableIntCollection
select
in interface MutableIntSet
select
in class AbstractSynchronizedIntCollection
public MutableIntSet reject(IntPredicate predicate)
IntIterable
reject
in interface IntIterable
reject
in interface IntSet
reject
in interface MutableIntCollection
reject
in interface MutableIntSet
reject
in class AbstractSynchronizedIntCollection
public <V> MutableSet<V> collect(IntToObjectFunction<? extends V> function)
IntIterable
collect
in interface IntIterable
collect
in interface IntSet
collect
in interface MutableIntCollection
collect
in interface MutableIntSet
collect
in class AbstractSynchronizedIntCollection
public boolean equals(Object otherSet)
IntSet
Set.equals(Object)
.public int hashCode()
IntSet
Set.hashCode()
.public LazyIntIterable asLazy()
IntIterable
asLazy
in interface IntIterable
asLazy
in class AbstractSynchronizedIntCollection
public MutableIntSet asUnmodifiable()
asUnmodifiable
in interface MutableIntCollection
asUnmodifiable
in interface MutableIntSet
asUnmodifiable
in class AbstractSynchronizedIntCollection
public MutableIntSet asSynchronized()
asSynchronized
in interface MutableIntCollection
asSynchronized
in interface MutableIntSet
asSynchronized
in class AbstractSynchronizedIntCollection
public IntSet freeze()
MutableIntSet
freeze
in interface IntSet
freeze
in interface MutableIntSet
public ImmutableIntSet toImmutable()
MutableIntSet
toImmutable
in interface IntSet
toImmutable
in interface MutableIntCollection
toImmutable
in interface MutableIntSet
toImmutable
in class AbstractSynchronizedIntCollection
Copyright © 2004–2017. All rights reserved.