CharBag
, CharIterable
, MutableCharCollection
, PrimitiveIterable
CharHashBag
, SynchronizedCharBag
, UnmodifiableCharBag
public interface MutableCharBag extends MutableCharCollection, CharBag
Modifier and Type | Method | Description |
---|---|---|
void |
addOccurrences(char item,
int occurrences) |
|
MutableCharBag |
asSynchronized() |
|
MutableCharBag |
asUnmodifiable() |
|
MutableList<CharIntPair> |
bottomOccurrences(int count) |
Returns the
count least frequently occurring items. |
<V> MutableBag<V> |
collect(CharToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
MutableCharBag |
reject(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return false for the specified predicate.
|
boolean |
removeOccurrences(char item,
int occurrences) |
|
MutableCharBag |
select(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return true for the specified predicate.
|
MutableCharBag |
selectByOccurrences(IntPredicate predicate) |
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
default MutableCharBag |
tap(CharProcedure procedure) |
|
ImmutableCharBag |
toImmutable() |
Returns an immutable copy of this bag.
|
MutableList<CharIntPair> |
topOccurrences(int count) |
Returns the
count most frequently occurring items. |
MutableCharBag |
with(char element) |
|
MutableCharBag |
withAll(CharIterable elements) |
|
MutableCharBag |
without(char element) |
|
MutableCharBag |
withoutAll(CharIterable elements) |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
add, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
void addOccurrences(char item, int occurrences)
boolean removeOccurrences(char item, int occurrences)
default MutableCharBag tap(CharProcedure procedure)
tap
in interface CharBag
tap
in interface CharIterable
tap
in interface MutableCharCollection
MutableCharBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface CharBag
MutableList<CharIntPair> topOccurrences(int count)
count
most frequently occurring items.
In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last
item will be returned.topOccurrences
in interface CharBag
MutableList<CharIntPair> bottomOccurrences(int count)
count
least frequently occurring items.
In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last
item will be returned.bottomOccurrences
in interface CharBag
MutableCharBag select(CharPredicate predicate)
CharIterable
select
in interface CharBag
select
in interface CharIterable
select
in interface MutableCharCollection
MutableCharBag reject(CharPredicate predicate)
CharIterable
reject
in interface CharBag
reject
in interface CharIterable
reject
in interface MutableCharCollection
<V> MutableBag<V> collect(CharToObjectFunction<? extends V> function)
CharIterable
collect
in interface CharBag
collect
in interface CharIterable
collect
in interface MutableCharCollection
MutableCharBag with(char element)
with
in interface MutableCharCollection
MutableCharBag without(char element)
without
in interface MutableCharCollection
MutableCharBag withAll(CharIterable elements)
withAll
in interface MutableCharCollection
MutableCharBag withoutAll(CharIterable elements)
withoutAll
in interface MutableCharCollection
MutableCharBag asUnmodifiable()
asUnmodifiable
in interface MutableCharCollection
MutableCharBag asSynchronized()
asSynchronized
in interface MutableCharCollection
ImmutableCharBag toImmutable()
toImmutable
in interface CharBag
toImmutable
in interface MutableCharCollection
Copyright © 2004–2018. All rights reserved.