Class UnmodifiableLongSet
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableLongCollection
org.eclipse.collections.impl.set.mutable.primitive.UnmodifiableLongSet
- All Implemented Interfaces:
Serializable, MutableLongCollection, LongIterable, PrimitiveIterable, LongSet, MutableLongSet
public class UnmodifiableLongSet
extends AbstractUnmodifiableLongCollection
implements MutableLongSet
This file was automatically generated from template file unmodifiablePrimitiveSet.stg.
- Since:
- 3.1.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboxed()cartesianProduct(LongSet set) Returns the set whose members are all possible ordered pairs (a, b) where a is a member ofthisand b is a member ofset.<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.booleanFollows the same general contract asSet.equals(Object).freeze()Returns a frozen copy of this set.private MutableLongSetinthashCode()Follows the same general contract asSet.hashCode().newEmpty()Creates a new empty mutable version of the same collection type.static UnmodifiableLongSetof(MutableLongSet set) This method will take a MutableLongSet and wrap it directly in a UnmodifiableLongSet.reject(LongPredicate predicate) Returns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.select(LongPredicate predicate) Returns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.Returns an immutable copy of this set.with(long element) withAll(LongIterable elements) without(long element) withoutAll(LongIterable elements) Methods inherited from class AbstractUnmodifiableLongCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, getLongCollection, 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 LongIterable
allSatisfy, anySatisfy, asLazy, 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 LongSet
isProperSubsetOf, isSubsetOfMethods inherited from interface MutableLongCollection
add, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface MutableLongSet
difference, intersect, symmetricDifference, tap, unionMethods inherited from interface PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
UnmodifiableLongSet
-
-
Method Details
-
of
This method will take a MutableLongSet and wrap it directly in a UnmodifiableLongSet. -
getMutableLongSet
-
with
- Specified by:
within interfaceMutableLongCollection- Specified by:
within interfaceMutableLongSet- Overrides:
within classAbstractUnmodifiableLongCollection
-
boxed
- Specified by:
boxedin interfaceMutableLongSet
-
without
- Specified by:
withoutin interfaceMutableLongCollection- Specified by:
withoutin interfaceMutableLongSet- Overrides:
withoutin classAbstractUnmodifiableLongCollection
-
withAll
- Specified by:
withAllin interfaceMutableLongCollection- Specified by:
withAllin interfaceMutableLongSet- Overrides:
withAllin classAbstractUnmodifiableLongCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableLongCollection- Specified by:
withoutAllin interfaceMutableLongSet- Overrides:
withoutAllin classAbstractUnmodifiableLongCollection
-
select
Description copied from interface:LongIterableReturns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.- Specified by:
selectin interfaceLongIterable- Specified by:
selectin interfaceLongSet- Specified by:
selectin interfaceMutableLongCollection- Specified by:
selectin interfaceMutableLongSet- Overrides:
selectin classAbstractUnmodifiableLongCollection
-
reject
Description copied from interface:LongIterableReturns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.- Specified by:
rejectin interfaceLongIterable- Specified by:
rejectin interfaceLongSet- Specified by:
rejectin interfaceMutableLongCollection- Specified by:
rejectin interfaceMutableLongSet- Overrides:
rejectin classAbstractUnmodifiableLongCollection
-
collect
Description copied from interface:LongIterableReturns 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.- Specified by:
collectin interfaceLongIterable- Specified by:
collectin interfaceLongSet- Specified by:
collectin interfaceMutableLongCollection- Specified by:
collectin interfaceMutableLongSet- Overrides:
collectin classAbstractUnmodifiableLongCollection
-
cartesianProduct
Description copied from interface:LongSetReturns the set whose members are all possible ordered pairs (a, b) where a is a member ofthisand b is a member ofset.- Specified by:
cartesianProductin interfaceLongSet
-
equals
-
hashCode
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableLongCollection- Specified by:
asUnmodifiablein interfaceMutableLongSet- Overrides:
asUnmodifiablein classAbstractUnmodifiableLongCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableLongCollection- Specified by:
asSynchronizedin interfaceMutableLongSet- Overrides:
asSynchronizedin classAbstractUnmodifiableLongCollection
-
freeze
Description copied from interface:MutableLongSetReturns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.- Specified by:
freezein interfaceLongSet- Specified by:
freezein interfaceMutableLongSet
-
toImmutable
Description copied from interface:MutableLongSetReturns an immutable copy of this set.- Specified by:
toImmutablein interfaceLongSet- Specified by:
toImmutablein interfaceMutableLongCollection- Specified by:
toImmutablein interfaceMutableLongSet- Overrides:
toImmutablein classAbstractUnmodifiableLongCollection
-
newEmpty
Description copied from interface:MutableLongCollectionCreates a new empty mutable version of the same collection type.- Specified by:
newEmptyin interfaceMutableLongCollection- Specified by:
newEmptyin interfaceMutableLongSet- Since:
- 9.2.
-