public 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 and Description |
|---|
SynchronizedIntSet(MutableIntSet set) |
SynchronizedIntSet(MutableIntSet set,
Object newLock) |
| Modifier and Type | Method and Description |
|---|---|
LazyIntIterable |
asLazy() |
MutableIntSet |
asSynchronized() |
MutableIntSet |
asUnmodifiable() |
LazyIterable<IntIntPair> |
cartesianProduct(IntSet set) |
<V> MutableSet<V> |
collect(IntToObjectFunction<? extends V> function) |
boolean |
equals(Object otherSet) |
IntSet |
freeze() |
int |
hashCode() |
MutableIntSet |
newEmpty() |
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() |
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, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, intIterator, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringdifference, intersect, symmetricDifference, tap, unionadd, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllisProperSubsetOf, isSubsetOfallSatisfy, anySatisfy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic 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 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)
select in interface MutableIntCollectionselect in interface IntIterableselect in interface IntSetselect in interface MutableIntSetselect in class AbstractSynchronizedIntCollectionpublic MutableIntSet reject(IntPredicate predicate)
reject in interface MutableIntCollectionreject in interface IntIterablereject in interface IntSetreject in interface MutableIntSetreject in class AbstractSynchronizedIntCollectionpublic <V> MutableSet<V> collect(IntToObjectFunction<? extends V> function)
collect in interface MutableIntCollectioncollect in interface IntIterablecollect in interface IntSetcollect in interface MutableIntSetcollect in class AbstractSynchronizedIntCollectionpublic LazyIterable<IntIntPair> cartesianProduct(IntSet set)
cartesianProduct in interface IntSetpublic boolean equals(Object otherSet)
public int hashCode()
public LazyIntIterable asLazy()
asLazy 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()
freeze in interface IntSetfreeze in interface MutableIntSetpublic ImmutableIntSet toImmutable()
toImmutable in interface MutableIntCollectiontoImmutable in interface IntSettoImmutable in interface MutableIntSettoImmutable in class AbstractSynchronizedIntCollectionpublic MutableIntSet newEmpty()
newEmpty in interface MutableIntCollectionnewEmpty in interface MutableIntSetCopyright © 2004–2022. All rights reserved.