Class UnmodifiableLongBag
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableLongCollection
-
- org.eclipse.collections.impl.bag.mutable.primitive.UnmodifiableLongBag
-
- All Implemented Interfaces:
Serializable,LongBag,MutableLongBag,MutableLongCollection,LongIterable,PrimitiveIterable
public class UnmodifiableLongBag extends AbstractUnmodifiableLongCollection implements MutableLongBag
This file was automatically generated from template file unmodifiablePrimitiveBag.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableLongBag(MutableLongBag bag)
-
Method Summary
-
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.bag.primitive.LongBag
toStringOfItemToCount
-
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.bag.primitive.MutableLongBag
selectDuplicates, tap
-
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.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
UnmodifiableLongBag
public UnmodifiableLongBag(MutableLongBag bag)
-
-
Method Detail
-
with
public UnmodifiableLongBag with(long element)
- Specified by:
within interfaceMutableLongBag- Specified by:
within interfaceMutableLongCollection- Overrides:
within classAbstractUnmodifiableLongCollection
-
without
public UnmodifiableLongBag without(long element)
- Specified by:
withoutin interfaceMutableLongBag- Specified by:
withoutin interfaceMutableLongCollection- Overrides:
withoutin classAbstractUnmodifiableLongCollection
-
withAll
public UnmodifiableLongBag withAll(LongIterable elements)
- Specified by:
withAllin interfaceMutableLongBag- Specified by:
withAllin interfaceMutableLongCollection- Overrides:
withAllin classAbstractUnmodifiableLongCollection
-
withoutAll
public UnmodifiableLongBag withoutAll(LongIterable elements)
- Specified by:
withoutAllin interfaceMutableLongBag- Specified by:
withoutAllin interfaceMutableLongCollection- Overrides:
withoutAllin classAbstractUnmodifiableLongCollection
-
addOccurrences
public void addOccurrences(long item, int occurrences)- Specified by:
addOccurrencesin interfaceMutableLongBag
-
removeOccurrences
public boolean removeOccurrences(long item, int occurrences)- Specified by:
removeOccurrencesin interfaceMutableLongBag
-
sizeDistinct
public int sizeDistinct()
- Specified by:
sizeDistinctin interfaceLongBag
-
occurrencesOf
public int occurrencesOf(long item)
- Specified by:
occurrencesOfin interfaceLongBag
-
forEachWithOccurrences
public void forEachWithOccurrences(LongIntProcedure procedure)
- Specified by:
forEachWithOccurrencesin interfaceLongBag
-
selectByOccurrences
public MutableLongBag selectByOccurrences(IntPredicate predicate)
- Specified by:
selectByOccurrencesin interfaceLongBag- Specified by:
selectByOccurrencesin interfaceMutableLongBag
-
selectUnique
public MutableLongSet selectUnique()
- Specified by:
selectUniquein interfaceLongBag- Specified by:
selectUniquein interfaceMutableLongBag
-
topOccurrences
public MutableList<LongIntPair> topOccurrences(int count)
- Specified by:
topOccurrencesin interfaceLongBag- Specified by:
topOccurrencesin interfaceMutableLongBag
-
bottomOccurrences
public MutableList<LongIntPair> bottomOccurrences(int count)
- Specified by:
bottomOccurrencesin interfaceLongBag- Specified by:
bottomOccurrencesin interfaceMutableLongBag
-
select
public MutableLongBag select(LongPredicate predicate)
- Specified by:
selectin interfaceLongBag- Specified by:
selectin interfaceLongIterable- Specified by:
selectin interfaceMutableLongBag- Specified by:
selectin interfaceMutableLongCollection- Overrides:
selectin classAbstractUnmodifiableLongCollection
-
reject
public MutableLongBag reject(LongPredicate predicate)
- Specified by:
rejectin interfaceLongBag- Specified by:
rejectin interfaceLongIterable- Specified by:
rejectin interfaceMutableLongBag- Specified by:
rejectin interfaceMutableLongCollection- Overrides:
rejectin classAbstractUnmodifiableLongCollection
-
collect
public <V> MutableBag<V> collect(LongToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceLongBag- Specified by:
collectin interfaceLongIterable- Specified by:
collectin interfaceMutableLongBag- Specified by:
collectin interfaceMutableLongCollection- Overrides:
collectin classAbstractUnmodifiableLongCollection
-
equals
public boolean equals(Object otherBag)
-
hashCode
public int hashCode()
-
asUnmodifiable
public MutableLongBag asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableLongBag- Specified by:
asUnmodifiablein interfaceMutableLongCollection- Overrides:
asUnmodifiablein classAbstractUnmodifiableLongCollection
-
asSynchronized
public MutableLongBag asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableLongBag- Specified by:
asSynchronizedin interfaceMutableLongCollection- Overrides:
asSynchronizedin classAbstractUnmodifiableLongCollection
-
toImmutable
public ImmutableLongBag toImmutable()
- Specified by:
toImmutablein interfaceLongBag- Specified by:
toImmutablein interfaceMutableLongBag- Specified by:
toImmutablein interfaceMutableLongCollection- Overrides:
toImmutablein classAbstractUnmodifiableLongCollection
-
newEmpty
public MutableLongBag newEmpty()
- Specified by:
newEmptyin interfaceMutableLongBag- Specified by:
newEmptyin interfaceMutableLongCollection- Since:
- 9.2.
-
-