Serializable, MutableLongCollection, LongIterable, PrimitiveIterable, LongSet, MutableLongSet@ThreadSafe public final class SynchronizedLongSet extends AbstractSynchronizedLongCollection implements 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| Constructor | Description |
|---|---|
SynchronizedLongSet(MutableLongSet set) |
|
SynchronizedLongSet(MutableLongSet set,
Object newLock) |
| Modifier and Type | Method | Description |
|---|---|---|
LazyLongIterable |
asLazy() |
Returns a LazyLongIterable adapter wrapping the source LongIterable.
|
MutableLongSet |
asSynchronized() |
|
MutableLongSet |
asUnmodifiable() |
|
<V> MutableSet<V> |
collect(LongToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
boolean |
equals(Object otherSet) |
Follows the same general contract as
Set.equals(Object). |
LongSet |
freeze() |
Returns a frozen copy of this set.
|
int |
hashCode() |
Follows the same general contract as
Set.hashCode(). |
static SynchronizedLongSet |
of(MutableLongSet set) |
This method will take a MutableLongSet and wrap it directly in a SynchronizedLongSet.
|
static SynchronizedLongSet |
of(MutableLongSet set,
Object lock) |
This method will take a MutableLongSet and wrap it directly in a SynchronizedLongSet.
|
MutableLongSet |
reject(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
MutableLongSet |
select(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
ImmutableLongSet |
toImmutable() |
Returns an immutable copy of this set.
|
SynchronizedLongSet |
with(long element) |
|
SynchronizedLongSet |
withAll(LongIterable elements) |
|
SynchronizedLongSet |
without(long element) |
|
SynchronizedLongSet |
withoutAll(LongIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, longIterator, 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, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, retainAll, retainAllappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic SynchronizedLongSet(MutableLongSet set)
public SynchronizedLongSet(MutableLongSet set, Object newLock)
public static SynchronizedLongSet of(MutableLongSet set)
public static SynchronizedLongSet of(MutableLongSet set, Object lock)
public SynchronizedLongSet without(long element)
without in interface MutableLongCollectionwithout in interface MutableLongSetwithout in class AbstractSynchronizedLongCollectionpublic SynchronizedLongSet with(long element)
with in interface MutableLongCollectionwith in interface MutableLongSetwith in class AbstractSynchronizedLongCollectionpublic SynchronizedLongSet withAll(LongIterable elements)
withAll in interface MutableLongCollectionwithAll in interface MutableLongSetwithAll in class AbstractSynchronizedLongCollectionpublic SynchronizedLongSet withoutAll(LongIterable elements)
withoutAll in interface MutableLongCollectionwithoutAll in interface MutableLongSetwithoutAll in class AbstractSynchronizedLongCollectionpublic MutableLongSet select(LongPredicate predicate)
LongIterableselect in interface LongIterableselect in interface LongSetselect in interface MutableLongCollectionselect in interface MutableLongSetselect in class AbstractSynchronizedLongCollectionpublic MutableLongSet reject(LongPredicate predicate)
LongIterablereject in interface LongIterablereject in interface LongSetreject in interface MutableLongCollectionreject in interface MutableLongSetreject in class AbstractSynchronizedLongCollectionpublic <V> MutableSet<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface LongIterablecollect in interface LongSetcollect in interface MutableLongCollectioncollect in interface MutableLongSetcollect in class AbstractSynchronizedLongCollectionpublic boolean equals(Object otherSet)
LongSetSet.equals(Object).public int hashCode()
LongSetSet.hashCode().public LazyLongIterable asLazy()
LongIterableasLazy in interface LongIterableasLazy in class AbstractSynchronizedLongCollectionpublic MutableLongSet asUnmodifiable()
asUnmodifiable in interface MutableLongCollectionasUnmodifiable in interface MutableLongSetasUnmodifiable in class AbstractSynchronizedLongCollectionpublic MutableLongSet asSynchronized()
asSynchronized in interface MutableLongCollectionasSynchronized in interface MutableLongSetasSynchronized in class AbstractSynchronizedLongCollectionpublic LongSet freeze()
MutableLongSetfreeze in interface LongSetfreeze in interface MutableLongSetpublic ImmutableLongSet toImmutable()
MutableLongSettoImmutable in interface LongSettoImmutable in interface MutableLongCollectiontoImmutable in interface MutableLongSettoImmutable in class AbstractSynchronizedLongCollectionCopyright © 2004–2017. All rights reserved.