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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableLongSet(MutableLongSet set)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableLongSetasSynchronized()MutableLongSetasUnmodifiable()MutableSet<Long>boxed()LazyIterable<LongLongPair>cartesianProduct(LongSet set)<V> MutableSet<V>collect(LongToObjectFunction<? extends V> function)booleanequals(Object otherSet)LongSetfreeze()inthashCode()MutableLongSetnewEmpty()static UnmodifiableLongSetof(MutableLongSet set)This method will take a MutableLongSet and wrap it directly in a UnmodifiableLongSet.MutableLongSetreject(LongPredicate predicate)MutableLongSetselect(LongPredicate predicate)ImmutableLongSettoImmutable()UnmodifiableLongSetwith(long element)UnmodifiableLongSetwithAll(LongIterable elements)UnmodifiableLongSetwithout(long element)UnmodifiableLongSetwithoutAll(LongIterable elements)-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableLongCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, 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, toString
-
Methods inherited from interface org.eclipse.collections.api.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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.LongSet
isProperSubsetOf, isSubsetOf
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableLongCollection
add, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.MutableLongSet
difference, intersect, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
UnmodifiableLongSet
public UnmodifiableLongSet(MutableLongSet set)
-
-
Method Detail
-
of
public static UnmodifiableLongSet of(MutableLongSet set)
This method will take a MutableLongSet and wrap it directly in a UnmodifiableLongSet.
-
with
public UnmodifiableLongSet with(long element)
- Specified by:
within interfaceMutableLongCollection- Specified by:
within interfaceMutableLongSet- Overrides:
within classAbstractUnmodifiableLongCollection
-
boxed
public MutableSet<Long> boxed()
- Specified by:
boxedin interfaceMutableLongSet
-
without
public UnmodifiableLongSet without(long element)
- Specified by:
withoutin interfaceMutableLongCollection- Specified by:
withoutin interfaceMutableLongSet- Overrides:
withoutin classAbstractUnmodifiableLongCollection
-
withAll
public UnmodifiableLongSet withAll(LongIterable elements)
- Specified by:
withAllin interfaceMutableLongCollection- Specified by:
withAllin interfaceMutableLongSet- Overrides:
withAllin classAbstractUnmodifiableLongCollection
-
withoutAll
public UnmodifiableLongSet withoutAll(LongIterable elements)
- Specified by:
withoutAllin interfaceMutableLongCollection- Specified by:
withoutAllin interfaceMutableLongSet- Overrides:
withoutAllin classAbstractUnmodifiableLongCollection
-
select
public MutableLongSet select(LongPredicate predicate)
- Specified by:
selectin interfaceLongIterable- Specified by:
selectin interfaceLongSet- Specified by:
selectin interfaceMutableLongCollection- Specified by:
selectin interfaceMutableLongSet- Overrides:
selectin classAbstractUnmodifiableLongCollection
-
reject
public MutableLongSet reject(LongPredicate predicate)
- Specified by:
rejectin interfaceLongIterable- Specified by:
rejectin interfaceLongSet- Specified by:
rejectin interfaceMutableLongCollection- Specified by:
rejectin interfaceMutableLongSet- Overrides:
rejectin classAbstractUnmodifiableLongCollection
-
collect
public <V> MutableSet<V> collect(LongToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceLongIterable- Specified by:
collectin interfaceLongSet- Specified by:
collectin interfaceMutableLongCollection- Specified by:
collectin interfaceMutableLongSet- Overrides:
collectin classAbstractUnmodifiableLongCollection
-
cartesianProduct
public LazyIterable<LongLongPair> cartesianProduct(LongSet set)
- Specified by:
cartesianProductin interfaceLongSet
-
equals
public boolean equals(Object otherSet)
-
hashCode
public int hashCode()
-
asUnmodifiable
public MutableLongSet asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableLongCollection- Specified by:
asUnmodifiablein interfaceMutableLongSet- Overrides:
asUnmodifiablein classAbstractUnmodifiableLongCollection
-
asSynchronized
public MutableLongSet asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableLongCollection- Specified by:
asSynchronizedin interfaceMutableLongSet- Overrides:
asSynchronizedin classAbstractUnmodifiableLongCollection
-
freeze
public LongSet freeze()
- Specified by:
freezein interfaceLongSet- Specified by:
freezein interfaceMutableLongSet
-
toImmutable
public ImmutableLongSet toImmutable()
- Specified by:
toImmutablein interfaceLongSet- Specified by:
toImmutablein interfaceMutableLongCollection- Specified by:
toImmutablein interfaceMutableLongSet- Overrides:
toImmutablein classAbstractUnmodifiableLongCollection
-
newEmpty
public MutableLongSet newEmpty()
- Specified by:
newEmptyin interfaceMutableLongCollection- Specified by:
newEmptyin interfaceMutableLongSet- Since:
- 9.2.
-
-