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()
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SynchronizedLongSet | back to summary |
|---|---|
| public SynchronizedLongSet(MutableLongSet set) | |
| SynchronizedLongSet | back to summary |
|---|---|
| public SynchronizedLongSet(MutableLongSet set, Object newLock) | |
| asLazy | back to summary |
|---|---|
| public LazyLongIterable asLazy() Overrides org. Implements org. Doc from org. Returns a LazyLongIterable adapter wrapping the source LongIterable.
| |
| asSynchronized | back to summary |
|---|---|
| public MutableLongSet asSynchronized() Implements org.
| |
| asUnmodifiable | back to summary |
|---|---|
| public MutableLongSet asUnmodifiable() Implements org.
| |
| boxed | back to summary |
|---|---|
| public MutableSet Implements org.
| |
| cartesianProduct | back to summary |
|---|---|
| public LazyIterable Implements org. Doc from org. Returns the set whose members are all possible ordered pairs (a, b) where a is a member of
| |
| collect | back to summary |
|---|---|
| public <V> MutableSet Overrides org. Implements org. Doc from org. Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object otherSet) Overrides java. Implements org. Doc from org. Follows the same general contract as
| |
| freeze | back to summary |
|---|---|
| public LongSet freeze() Implements org. Doc from org. Returns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees. | |
| getMutableLongSet | back to summary |
|---|---|
| private MutableLongSet getMutableLongSet() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements org. Doc from org. Follows the same general contract as
| |
| newEmpty | back to summary |
|---|---|
| public MutableLongSet newEmpty() Overrides default org. Doc from org. Creates a new empty mutable version of the same Set type.
| |
| of | back to summary |
|---|---|
| public static SynchronizedLongSet of(MutableLongSet set) This method will take a MutableLongSet and wrap it directly in a SynchronizedLongSet. | |
| of | back to summary |
|---|---|
| public static SynchronizedLongSet of(MutableLongSet set, Object lock) This method will take a MutableLongSet and wrap it directly in a SynchronizedLongSet. Additionally, a developer specifies which lock to use with the collection. | |
| reject | back to summary |
|---|---|
| public MutableLongSet reject(LongPredicate predicate) Overrides org. Implements org. Doc from org. Returns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.
| |
| select | back to summary |
|---|---|
| public MutableLongSet select(LongPredicate predicate) Overrides org. Implements org. Doc from org. Returns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.
| |
| toImmutable | back to summary |
|---|---|
| public ImmutableLongSet toImmutable() Implements org. Doc from org. Returns an immutable copy of this set.
| |
| with | back to summary |
|---|---|
| public SynchronizedLongSet with(long element) Overrides org. Implements org.
| |
| withAll | back to summary |
|---|---|
| public SynchronizedLongSet withAll(LongIterable elements) Overrides org. Implements org.
| |
| without | back to summary |
|---|---|
| public SynchronizedLongSet without(long element) Overrides org. Implements org.
| |
| withoutAll | back to summary |
|---|---|
| public SynchronizedLongSet withoutAll(LongIterable elements) Implements org.
| |