public class UnmodifiableLongBag extends AbstractUnmodifiableLongCollection implements MutableLongBag
| Constructor and Description |
|---|
UnmodifiableLongBag(MutableLongBag bag) |
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, toStringselectDuplicates, tapadd, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAlltoStringOfItemToCountallSatisfy, 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, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableLongBag(MutableLongBag bag)
public UnmodifiableLongBag with(long element)
with in interface MutableLongBagwith in interface MutableLongCollectionwith in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongBag without(long element)
without in interface MutableLongBagwithout in interface MutableLongCollectionwithout in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongBag withAll(LongIterable elements)
withAll in interface MutableLongBagwithAll in interface MutableLongCollectionwithAll in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongBag withoutAll(LongIterable elements)
withoutAll in interface MutableLongBagwithoutAll in interface MutableLongCollectionwithoutAll in class AbstractUnmodifiableLongCollectionpublic void addOccurrences(long item,
int occurrences)
addOccurrences in interface MutableLongBagpublic boolean removeOccurrences(long item,
int occurrences)
removeOccurrences in interface MutableLongBagpublic int sizeDistinct()
sizeDistinct in interface LongBagpublic int occurrencesOf(long item)
occurrencesOf in interface LongBagpublic void forEachWithOccurrences(LongIntProcedure procedure)
forEachWithOccurrences in interface LongBagpublic MutableLongBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface LongBagselectByOccurrences in interface MutableLongBagpublic MutableLongSet selectUnique()
selectUnique in interface LongBagselectUnique in interface MutableLongBagpublic MutableList<LongIntPair> topOccurrences(int count)
topOccurrences in interface LongBagtopOccurrences in interface MutableLongBagpublic MutableList<LongIntPair> bottomOccurrences(int count)
bottomOccurrences in interface LongBagbottomOccurrences in interface MutableLongBagpublic MutableLongBag select(LongPredicate predicate)
select in interface LongBagselect in interface MutableLongBagselect in interface MutableLongCollectionselect in interface LongIterableselect in class AbstractUnmodifiableLongCollectionpublic MutableLongBag reject(LongPredicate predicate)
reject in interface LongBagreject in interface MutableLongBagreject in interface MutableLongCollectionreject in interface LongIterablereject in class AbstractUnmodifiableLongCollectionpublic <V> MutableBag<V> collect(LongToObjectFunction<? extends V> function)
collect in interface LongBagcollect in interface MutableLongBagcollect in interface MutableLongCollectioncollect in interface LongIterablecollect in class AbstractUnmodifiableLongCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public MutableLongBag asUnmodifiable()
asUnmodifiable in interface MutableLongBagasUnmodifiable in interface MutableLongCollectionasUnmodifiable in class AbstractUnmodifiableLongCollectionpublic MutableLongBag asSynchronized()
asSynchronized in interface MutableLongBagasSynchronized in interface MutableLongCollectionasSynchronized in class AbstractUnmodifiableLongCollectionpublic ImmutableLongBag toImmutable()
toImmutable in interface LongBagtoImmutable in interface MutableLongBagtoImmutable in interface MutableLongCollectiontoImmutable in class AbstractUnmodifiableLongCollectionpublic MutableLongBag newEmpty()
newEmpty in interface MutableLongBagnewEmpty in interface MutableLongCollectionCopyright © 2004–2022. All rights reserved.