Class SynchronizedLongSet
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedLongCollection
org.eclipse.collections.impl.set.mutable.primitive.SynchronizedLongSet
- All Implemented Interfaces:
Serializable,MutableLongCollection,LongIterable,PrimitiveIterable,LongSet,MutableLongSet
public class SynchronizedLongSet
extends AbstractSynchronizedLongCollection
implements MutableLongSet
A synchronized view of a
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.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasLazy()boxed()cartesianProduct(LongSet set) <V> MutableSet<V>collect(LongToObjectFunction<? extends V> function) booleanfreeze()inthashCode()newEmpty()static SynchronizedLongSetof(MutableLongSet set) This method will take a MutableLongSet and wrap it directly in a SynchronizedLongSet.static SynchronizedLongSetof(MutableLongSet set, Object lock) This method will take a MutableLongSet and wrap it directly in a SynchronizedLongSet.reject(LongPredicate predicate) select(LongPredicate predicate) with(long element) withAll(LongIterable elements) without(long element) withoutAll(LongIterable elements) Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedLongCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, isEmpty, longIterator, 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, toStringMethods inherited from interface org.eclipse.collections.api.LongIterable
allSatisfy, 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.set.primitive.LongSet
isProperSubsetOf, isSubsetOfMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableLongCollection
add, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface org.eclipse.collections.api.set.primitive.MutableLongSet
difference, intersect, symmetricDifference, tap, unionMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
SynchronizedLongSet
-
SynchronizedLongSet
-
-
Method Details
-
of
This method will take a MutableLongSet and wrap it directly in a SynchronizedLongSet. -
of
This method will take a MutableLongSet and wrap it directly in a SynchronizedLongSet. Additionally, a developer specifies which lock to use with the collection. -
without
- Specified by:
withoutin interfaceMutableLongCollection- Specified by:
withoutin interfaceMutableLongSet- Overrides:
withoutin classAbstractSynchronizedLongCollection
-
boxed
- Specified by:
boxedin interfaceMutableLongSet
-
with
- Specified by:
within interfaceMutableLongCollection- Specified by:
within interfaceMutableLongSet- Overrides:
within classAbstractSynchronizedLongCollection
-
withAll
- Specified by:
withAllin interfaceMutableLongCollection- Specified by:
withAllin interfaceMutableLongSet- Overrides:
withAllin classAbstractSynchronizedLongCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableLongCollection- Specified by:
withoutAllin interfaceMutableLongSet- Overrides:
withoutAllin classAbstractSynchronizedLongCollection
-
select
- Specified by:
selectin interfaceLongIterable- Specified by:
selectin interfaceLongSet- Specified by:
selectin interfaceMutableLongCollection- Specified by:
selectin interfaceMutableLongSet- Overrides:
selectin classAbstractSynchronizedLongCollection
-
reject
- Specified by:
rejectin interfaceLongIterable- Specified by:
rejectin interfaceLongSet- Specified by:
rejectin interfaceMutableLongCollection- Specified by:
rejectin interfaceMutableLongSet- Overrides:
rejectin classAbstractSynchronizedLongCollection
-
collect
- Specified by:
collectin interfaceLongIterable- Specified by:
collectin interfaceLongSet- Specified by:
collectin interfaceMutableLongCollection- Specified by:
collectin interfaceMutableLongSet- Overrides:
collectin classAbstractSynchronizedLongCollection
-
cartesianProduct
- Specified by:
cartesianProductin interfaceLongSet
-
equals
-
hashCode
public int hashCode() -
asLazy
- Specified by:
asLazyin interfaceLongIterable- Overrides:
asLazyin classAbstractSynchronizedLongCollection
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableLongCollection- Specified by:
asUnmodifiablein interfaceMutableLongSet- Overrides:
asUnmodifiablein classAbstractSynchronizedLongCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableLongCollection- Specified by:
asSynchronizedin interfaceMutableLongSet- Overrides:
asSynchronizedin classAbstractSynchronizedLongCollection
-
freeze
- Specified by:
freezein interfaceLongSet- Specified by:
freezein interfaceMutableLongSet
-
toImmutable
- Specified by:
toImmutablein interfaceLongSet- Specified by:
toImmutablein interfaceMutableLongCollection- Specified by:
toImmutablein interfaceMutableLongSet- Overrides:
toImmutablein classAbstractSynchronizedLongCollection
-
newEmpty
- Specified by:
newEmptyin interfaceMutableLongCollection- Specified by:
newEmptyin interfaceMutableLongSet- Since:
- 9.2.
-