@NotThreadSafe public final class UnmodifiableLongBag extends AbstractUnmodifiableLongCollection implements org.eclipse.collections.api.bag.primitive.MutableLongBag
| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(long item,
int occurrences) |
org.eclipse.collections.api.bag.primitive.MutableLongBag |
asSynchronized() |
org.eclipse.collections.api.bag.primitive.MutableLongBag |
asUnmodifiable() |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function) |
boolean |
equals(Object otherBag) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.LongIntProcedure procedure) |
int |
hashCode() |
int |
occurrencesOf(long item) |
org.eclipse.collections.api.bag.primitive.MutableLongBag |
reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
removeOccurrences(long item,
int occurrences) |
org.eclipse.collections.api.bag.primitive.MutableLongBag |
select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
int |
sizeDistinct() |
org.eclipse.collections.api.bag.primitive.ImmutableLongBag |
toImmutable() |
UnmodifiableLongBag |
with(long element) |
UnmodifiableLongBag |
withAll(org.eclipse.collections.api.LongIterable elements) |
UnmodifiableLongBag |
without(long element) |
UnmodifiableLongBag |
withoutAll(org.eclipse.collections.api.LongIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, longIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringadd, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic UnmodifiableLongBag with(long element)
with in interface org.eclipse.collections.api.bag.primitive.MutableLongBagwith in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwith in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongBag without(long element)
without in interface org.eclipse.collections.api.bag.primitive.MutableLongBagwithout in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithout in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongBag withAll(org.eclipse.collections.api.LongIterable elements)
withAll in interface org.eclipse.collections.api.bag.primitive.MutableLongBagwithAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithAll in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongBag withoutAll(org.eclipse.collections.api.LongIterable elements)
withoutAll in interface org.eclipse.collections.api.bag.primitive.MutableLongBagwithoutAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithoutAll in class AbstractUnmodifiableLongCollectionpublic void addOccurrences(long item,
int occurrences)
addOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableLongBagpublic boolean removeOccurrences(long item,
int occurrences)
removeOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableLongBagpublic int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.primitive.LongBagpublic int occurrencesOf(long item)
occurrencesOf in interface org.eclipse.collections.api.bag.primitive.LongBagpublic void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.LongIntProcedure procedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.primitive.LongBagpublic org.eclipse.collections.api.bag.primitive.MutableLongBag select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
select in interface org.eclipse.collections.api.bag.primitive.LongBagselect in interface org.eclipse.collections.api.bag.primitive.MutableLongBagselect in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionselect in interface org.eclipse.collections.api.LongIterableselect in class AbstractUnmodifiableLongCollectionpublic org.eclipse.collections.api.bag.primitive.MutableLongBag reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
reject in interface org.eclipse.collections.api.bag.primitive.LongBagreject in interface org.eclipse.collections.api.bag.primitive.MutableLongBagreject in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionreject in interface org.eclipse.collections.api.LongIterablereject in class AbstractUnmodifiableLongCollectionpublic <V> org.eclipse.collections.api.bag.MutableBag<V> collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.bag.primitive.LongBagcollect in interface org.eclipse.collections.api.bag.primitive.MutableLongBagcollect in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectioncollect in interface org.eclipse.collections.api.LongIterablecollect in class AbstractUnmodifiableLongCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public org.eclipse.collections.api.bag.primitive.MutableLongBag asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.bag.primitive.MutableLongBagasUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionasUnmodifiable in class AbstractUnmodifiableLongCollectionpublic org.eclipse.collections.api.bag.primitive.MutableLongBag asSynchronized()
asSynchronized in interface org.eclipse.collections.api.bag.primitive.MutableLongBagasSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionasSynchronized in class AbstractUnmodifiableLongCollectionpublic org.eclipse.collections.api.bag.primitive.ImmutableLongBag toImmutable()
toImmutable in interface org.eclipse.collections.api.bag.primitive.LongBagtoImmutable in interface org.eclipse.collections.api.bag.primitive.MutableLongBagtoImmutable in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectiontoImmutable in class AbstractUnmodifiableLongCollectionCopyright © 2004–2018. All rights reserved.