@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 FormModifier and Type | Method and Description |
---|---|
LazyIntIterable |
asLazy() |
MutableIntSet |
asSynchronized() |
MutableIntSet |
asUnmodifiable() |
<V> MutableSet<V> |
collect(IntToObjectFunction<? extends V> function) |
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) |
MutableIntSet |
select(IntPredicate 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
add, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, retainAll, retainAll
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 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)
select
in interface MutableIntCollection
select
in interface IntIterable
select
in interface IntSet
select
in interface MutableIntSet
select
in class AbstractSynchronizedIntCollection
public MutableIntSet reject(IntPredicate predicate)
reject
in interface MutableIntCollection
reject
in interface IntIterable
reject
in interface IntSet
reject
in interface MutableIntSet
reject
in class AbstractSynchronizedIntCollection
public <V> MutableSet<V> collect(IntToObjectFunction<? extends V> function)
collect
in interface MutableIntCollection
collect
in interface IntIterable
collect
in interface IntSet
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()
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 MutableIntCollection
toImmutable
in interface IntSet
toImmutable
in interface MutableIntSet
toImmutable
in class AbstractSynchronizedIntCollection
Copyright © 2004–2016. All rights reserved.