@ThreadSafe public final class SynchronizedIntSet extends AbstractSynchronizedIntCollection implements com.gs.collections.api.set.primitive.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| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.LazyIntIterable |
asLazy() |
com.gs.collections.api.set.primitive.MutableIntSet |
asSynchronized() |
com.gs.collections.api.set.primitive.MutableIntSet |
asUnmodifiable() |
<V> com.gs.collections.api.set.MutableSet<V> |
collect(com.gs.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function) |
boolean |
equals(java.lang.Object otherSet)
Follows the same general contract as
Set.equals(Object). |
com.gs.collections.api.set.primitive.IntSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
static SynchronizedIntSet |
of(com.gs.collections.api.set.primitive.MutableIntSet set)
This method will take a MutableIntSet and wrap it directly in a SynchronizedIntSet.
|
static SynchronizedIntSet |
of(com.gs.collections.api.set.primitive.MutableIntSet set,
java.lang.Object lock)
This method will take a MutableIntSet and wrap it directly in a SynchronizedIntSet.
|
com.gs.collections.api.set.primitive.MutableIntSet |
reject(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate) |
com.gs.collections.api.set.primitive.MutableIntSet |
select(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate) |
com.gs.collections.api.set.primitive.ImmutableIntSet |
toImmutable()
Returns an immutable copy of this set.
|
SynchronizedIntSet |
with(int element) |
SynchronizedIntSet |
withAll(com.gs.collections.api.IntIterable elements) |
SynchronizedIntSet |
without(int element) |
SynchronizedIntSet |
withoutAll(com.gs.collections.api.IntIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, getIntCollection, getLock, 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic static SynchronizedIntSet of(com.gs.collections.api.set.primitive.MutableIntSet set)
public static SynchronizedIntSet of(com.gs.collections.api.set.primitive.MutableIntSet set, java.lang.Object lock)
public SynchronizedIntSet without(int element)
without in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwithout in interface com.gs.collections.api.set.primitive.MutableIntSetwithout in class AbstractSynchronizedIntCollectionpublic SynchronizedIntSet with(int element)
with in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwith in interface com.gs.collections.api.set.primitive.MutableIntSetwith in class AbstractSynchronizedIntCollectionpublic SynchronizedIntSet withAll(com.gs.collections.api.IntIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwithAll in interface com.gs.collections.api.set.primitive.MutableIntSetwithAll in class AbstractSynchronizedIntCollectionpublic SynchronizedIntSet withoutAll(com.gs.collections.api.IntIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwithoutAll in interface com.gs.collections.api.set.primitive.MutableIntSetwithoutAll in class AbstractSynchronizedIntCollectionpublic com.gs.collections.api.set.primitive.MutableIntSet select(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
select in interface com.gs.collections.api.collection.primitive.MutableIntCollectionselect in interface com.gs.collections.api.IntIterableselect in interface com.gs.collections.api.set.primitive.IntSetselect in interface com.gs.collections.api.set.primitive.MutableIntSetselect in class AbstractSynchronizedIntCollectionpublic com.gs.collections.api.set.primitive.MutableIntSet reject(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
reject in interface com.gs.collections.api.collection.primitive.MutableIntCollectionreject in interface com.gs.collections.api.IntIterablereject in interface com.gs.collections.api.set.primitive.IntSetreject in interface com.gs.collections.api.set.primitive.MutableIntSetreject in class AbstractSynchronizedIntCollectionpublic <V> com.gs.collections.api.set.MutableSet<V> collect(com.gs.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.collection.primitive.MutableIntCollectioncollect in interface com.gs.collections.api.IntIterablecollect in interface com.gs.collections.api.set.primitive.IntSetcollect in interface com.gs.collections.api.set.primitive.MutableIntSetcollect in class AbstractSynchronizedIntCollectionpublic boolean equals(java.lang.Object otherSet)
com.gs.collections.api.set.primitive.IntSetSet.equals(Object).equals in interface com.gs.collections.api.set.primitive.IntSetequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.set.primitive.IntSetSet.hashCode().hashCode in interface com.gs.collections.api.set.primitive.IntSethashCode in class java.lang.Objectpublic com.gs.collections.api.LazyIntIterable asLazy()
asLazy in interface com.gs.collections.api.IntIterableasLazy in class AbstractSynchronizedIntCollectionpublic com.gs.collections.api.set.primitive.MutableIntSet asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableIntCollectionasUnmodifiable in interface com.gs.collections.api.set.primitive.MutableIntSetasUnmodifiable in class AbstractSynchronizedIntCollectionpublic com.gs.collections.api.set.primitive.MutableIntSet asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableIntCollectionasSynchronized in interface com.gs.collections.api.set.primitive.MutableIntSetasSynchronized in class AbstractSynchronizedIntCollectionpublic com.gs.collections.api.set.primitive.IntSet freeze()
com.gs.collections.api.set.primitive.MutableIntSetfreeze in interface com.gs.collections.api.set.primitive.IntSetfreeze in interface com.gs.collections.api.set.primitive.MutableIntSetpublic com.gs.collections.api.set.primitive.ImmutableIntSet toImmutable()
com.gs.collections.api.set.primitive.MutableIntSettoImmutable in interface com.gs.collections.api.collection.primitive.MutableIntCollectiontoImmutable in interface com.gs.collections.api.set.primitive.IntSettoImmutable in interface com.gs.collections.api.set.primitive.MutableIntSettoImmutable in class AbstractSynchronizedIntCollection