@ThreadSafe public final class SynchronizedLongSet extends AbstractSynchronizedLongCollection implements com.gs.collections.api.set.primitive.MutableLongSet
MutableLongSet. It is imperative that the user manually synchronize on the collection when iterating over it using the
LongIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveSet.stg.
MutableLongSet.asSynchronized(),
MutableSet.asSynchronized(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.LazyLongIterable |
asLazy() |
com.gs.collections.api.set.primitive.MutableLongSet |
asSynchronized() |
com.gs.collections.api.set.primitive.MutableLongSet |
asUnmodifiable() |
<V> com.gs.collections.api.set.MutableSet<V> |
collect(com.gs.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function) |
boolean |
equals(java.lang.Object otherSet)
Follows the same general contract as
Set.equals(Object). |
com.gs.collections.api.set.primitive.LongSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
static SynchronizedLongSet |
of(com.gs.collections.api.set.primitive.MutableLongSet set)
This method will take a MutableLongSet and wrap it directly in a SynchronizedLongSet.
|
static SynchronizedLongSet |
of(com.gs.collections.api.set.primitive.MutableLongSet set,
java.lang.Object lock)
This method will take a MutableLongSet and wrap it directly in a SynchronizedLongSet.
|
com.gs.collections.api.set.primitive.MutableLongSet |
reject(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
com.gs.collections.api.set.primitive.MutableLongSet |
select(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
com.gs.collections.api.set.primitive.ImmutableLongSet |
toImmutable()
Returns an immutable copy of this set.
|
SynchronizedLongSet |
with(long element) |
SynchronizedLongSet |
withAll(com.gs.collections.api.LongIterable elements) |
SynchronizedLongSet |
without(long element) |
SynchronizedLongSet |
withoutAll(com.gs.collections.api.LongIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, getLock, getLongCollection, isEmpty, longIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, forEach, longIterator, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic static SynchronizedLongSet of(com.gs.collections.api.set.primitive.MutableLongSet set)
public static SynchronizedLongSet of(com.gs.collections.api.set.primitive.MutableLongSet set, java.lang.Object lock)
public SynchronizedLongSet without(long element)
without in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwithout in interface com.gs.collections.api.set.primitive.MutableLongSetwithout in class AbstractSynchronizedLongCollectionpublic SynchronizedLongSet with(long element)
with in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwith in interface com.gs.collections.api.set.primitive.MutableLongSetwith in class AbstractSynchronizedLongCollectionpublic SynchronizedLongSet withAll(com.gs.collections.api.LongIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwithAll in interface com.gs.collections.api.set.primitive.MutableLongSetwithAll in class AbstractSynchronizedLongCollectionpublic SynchronizedLongSet withoutAll(com.gs.collections.api.LongIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwithoutAll in interface com.gs.collections.api.set.primitive.MutableLongSetwithoutAll in class AbstractSynchronizedLongCollectionpublic com.gs.collections.api.set.primitive.MutableLongSet select(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
select in interface com.gs.collections.api.collection.primitive.MutableLongCollectionselect in interface com.gs.collections.api.LongIterableselect in interface com.gs.collections.api.set.primitive.LongSetselect in interface com.gs.collections.api.set.primitive.MutableLongSetselect in class AbstractSynchronizedLongCollectionpublic com.gs.collections.api.set.primitive.MutableLongSet reject(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
reject in interface com.gs.collections.api.collection.primitive.MutableLongCollectionreject in interface com.gs.collections.api.LongIterablereject in interface com.gs.collections.api.set.primitive.LongSetreject in interface com.gs.collections.api.set.primitive.MutableLongSetreject in class AbstractSynchronizedLongCollectionpublic <V> com.gs.collections.api.set.MutableSet<V> collect(com.gs.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.collection.primitive.MutableLongCollectioncollect in interface com.gs.collections.api.LongIterablecollect in interface com.gs.collections.api.set.primitive.LongSetcollect in interface com.gs.collections.api.set.primitive.MutableLongSetcollect in class AbstractSynchronizedLongCollectionpublic boolean equals(java.lang.Object otherSet)
com.gs.collections.api.set.primitive.LongSetSet.equals(Object).equals in interface com.gs.collections.api.set.primitive.LongSetequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.set.primitive.LongSetSet.hashCode().hashCode in interface com.gs.collections.api.set.primitive.LongSethashCode in class java.lang.Objectpublic com.gs.collections.api.LazyLongIterable asLazy()
asLazy in interface com.gs.collections.api.LongIterableasLazy in class AbstractSynchronizedLongCollectionpublic com.gs.collections.api.set.primitive.MutableLongSet asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableLongCollectionasUnmodifiable in interface com.gs.collections.api.set.primitive.MutableLongSetasUnmodifiable in class AbstractSynchronizedLongCollectionpublic com.gs.collections.api.set.primitive.MutableLongSet asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableLongCollectionasSynchronized in interface com.gs.collections.api.set.primitive.MutableLongSetasSynchronized in class AbstractSynchronizedLongCollectionpublic com.gs.collections.api.set.primitive.LongSet freeze()
com.gs.collections.api.set.primitive.MutableLongSetfreeze in interface com.gs.collections.api.set.primitive.LongSetfreeze in interface com.gs.collections.api.set.primitive.MutableLongSetpublic com.gs.collections.api.set.primitive.ImmutableLongSet toImmutable()
com.gs.collections.api.set.primitive.MutableLongSettoImmutable in interface com.gs.collections.api.collection.primitive.MutableLongCollectiontoImmutable in interface com.gs.collections.api.set.primitive.LongSettoImmutable in interface com.gs.collections.api.set.primitive.MutableLongSettoImmutable in class AbstractSynchronizedLongCollection