MutableIntCollection, IntIterable, PrimitiveIterable, IntSet, MutableIntSetpublic 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 Form| Constructor | Description |
|---|---|
SynchronizedIntSet(MutableIntSet set) |
|
SynchronizedIntSet(MutableIntSet set,
java.lang.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(java.lang.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,
java.lang.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, toStringallSatisfy, anySatisfy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic SynchronizedIntSet(MutableIntSet set)
public SynchronizedIntSet(MutableIntSet set, java.lang.Object newLock)
public static SynchronizedIntSet of(MutableIntSet set)
public static SynchronizedIntSet of(MutableIntSet set, java.lang.Object lock)
public SynchronizedIntSet without(int element)
without in interface MutableIntCollectionwithout in interface MutableIntSetwithout in class AbstractSynchronizedIntCollectionpublic SynchronizedIntSet with(int element)
with in interface MutableIntCollectionwith in interface MutableIntSetwith in class AbstractSynchronizedIntCollectionpublic SynchronizedIntSet withAll(IntIterable elements)
withAll in interface MutableIntCollectionwithAll in interface MutableIntSetwithAll in class AbstractSynchronizedIntCollectionpublic SynchronizedIntSet withoutAll(IntIterable elements)
withoutAll in interface MutableIntCollectionwithoutAll in interface MutableIntSetwithoutAll in class AbstractSynchronizedIntCollectionpublic MutableIntSet select(IntPredicate predicate)
IntIterableselect in interface IntIterableselect in interface IntSetselect in interface MutableIntCollectionselect in interface MutableIntSetselect in class AbstractSynchronizedIntCollectionpublic MutableIntSet reject(IntPredicate predicate)
IntIterablereject in interface IntIterablereject in interface IntSetreject in interface MutableIntCollectionreject in interface MutableIntSetreject in class AbstractSynchronizedIntCollectionpublic <V> MutableSet<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface IntIterablecollect in interface IntSetcollect in interface MutableIntCollectioncollect in interface MutableIntSetcollect in class AbstractSynchronizedIntCollectionpublic boolean equals(java.lang.Object otherSet)
IntSetSet.equals(Object).public int hashCode()
IntSetSet.hashCode().public LazyIntIterable asLazy()
IntIterableasLazy in interface IntIterableasLazy in class AbstractSynchronizedIntCollectionpublic MutableIntSet asUnmodifiable()
asUnmodifiable in interface MutableIntCollectionasUnmodifiable in interface MutableIntSetasUnmodifiable in class AbstractSynchronizedIntCollectionpublic MutableIntSet asSynchronized()
asSynchronized in interface MutableIntCollectionasSynchronized in interface MutableIntSetasSynchronized in class AbstractSynchronizedIntCollectionpublic IntSet freeze()
MutableIntSetfreeze in interface IntSetfreeze in interface MutableIntSetpublic ImmutableIntSet toImmutable()
MutableIntSettoImmutable in interface IntSettoImmutable in interface MutableIntCollectiontoImmutable in interface MutableIntSettoImmutable in class AbstractSynchronizedIntCollectionCopyright © 2004–2017. All rights reserved.