public class UnmodifiableIntBag extends AbstractUnmodifiableIntCollection implements MutableIntBag
| Constructor and Description |
|---|
UnmodifiableIntBag(MutableIntBag bag) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(int item,
int occurrences) |
MutableIntBag |
asSynchronized() |
MutableIntBag |
asUnmodifiable() |
MutableList<IntIntPair> |
bottomOccurrences(int count) |
<V> MutableBag<V> |
collect(IntToObjectFunction<? extends V> function) |
boolean |
equals(Object otherBag) |
void |
forEachWithOccurrences(IntIntProcedure procedure) |
int |
hashCode() |
MutableIntBag |
newEmpty() |
int |
occurrencesOf(int item) |
MutableIntBag |
reject(IntPredicate predicate) |
boolean |
removeOccurrences(int item,
int occurrences) |
MutableIntBag |
select(IntPredicate predicate) |
MutableIntBag |
selectByOccurrences(IntPredicate predicate) |
MutableIntSet |
selectUnique() |
int |
sizeDistinct() |
ImmutableIntBag |
toImmutable() |
MutableList<IntIntPair> |
topOccurrences(int count) |
UnmodifiableIntBag |
with(int element) |
UnmodifiableIntBag |
withAll(IntIterable elements) |
UnmodifiableIntBag |
without(int element) |
UnmodifiableIntBag |
withoutAll(IntIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, intIterator, isEmpty, 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, intIterator, 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 UnmodifiableIntBag(MutableIntBag bag)
public UnmodifiableIntBag with(int element)
with in interface MutableIntBagwith in interface MutableIntCollectionwith in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntBag without(int element)
without in interface MutableIntBagwithout in interface MutableIntCollectionwithout in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntBag withAll(IntIterable elements)
withAll in interface MutableIntBagwithAll in interface MutableIntCollectionwithAll in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntBag withoutAll(IntIterable elements)
withoutAll in interface MutableIntBagwithoutAll in interface MutableIntCollectionwithoutAll in class AbstractUnmodifiableIntCollectionpublic void addOccurrences(int item,
int occurrences)
addOccurrences in interface MutableIntBagpublic boolean removeOccurrences(int item,
int occurrences)
removeOccurrences in interface MutableIntBagpublic int sizeDistinct()
sizeDistinct in interface IntBagpublic int occurrencesOf(int item)
occurrencesOf in interface IntBagpublic void forEachWithOccurrences(IntIntProcedure procedure)
forEachWithOccurrences in interface IntBagpublic MutableIntBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface IntBagselectByOccurrences in interface MutableIntBagpublic MutableIntSet selectUnique()
selectUnique in interface IntBagselectUnique in interface MutableIntBagpublic MutableList<IntIntPair> topOccurrences(int count)
topOccurrences in interface IntBagtopOccurrences in interface MutableIntBagpublic MutableList<IntIntPair> bottomOccurrences(int count)
bottomOccurrences in interface IntBagbottomOccurrences in interface MutableIntBagpublic MutableIntBag select(IntPredicate predicate)
select in interface IntBagselect in interface MutableIntBagselect in interface MutableIntCollectionselect in interface IntIterableselect in class AbstractUnmodifiableIntCollectionpublic MutableIntBag reject(IntPredicate predicate)
reject in interface IntBagreject in interface MutableIntBagreject in interface MutableIntCollectionreject in interface IntIterablereject in class AbstractUnmodifiableIntCollectionpublic <V> MutableBag<V> collect(IntToObjectFunction<? extends V> function)
collect in interface IntBagcollect in interface MutableIntBagcollect in interface MutableIntCollectioncollect in interface IntIterablecollect in class AbstractUnmodifiableIntCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public MutableIntBag asUnmodifiable()
asUnmodifiable in interface MutableIntBagasUnmodifiable in interface MutableIntCollectionasUnmodifiable in class AbstractUnmodifiableIntCollectionpublic MutableIntBag asSynchronized()
asSynchronized in interface MutableIntBagasSynchronized in interface MutableIntCollectionasSynchronized in class AbstractUnmodifiableIntCollectionpublic ImmutableIntBag toImmutable()
toImmutable in interface IntBagtoImmutable in interface MutableIntBagtoImmutable in interface MutableIntCollectiontoImmutable in class AbstractUnmodifiableIntCollectionpublic MutableIntBag newEmpty()
newEmpty in interface MutableIntBagnewEmpty in interface MutableIntCollectionCopyright © 2004–2022. All rights reserved.