ImmutableLongCollection
, LongBag
, LongIterable
, PrimitiveIterable
public interface ImmutableLongBag extends ImmutableLongCollection, LongBag
Modifier and Type | Method | Description |
---|---|---|
ImmutableList<LongIntPair> |
bottomOccurrences(int count) |
Returns the
count least frequently occurring items. |
<V> ImmutableBag<V> |
collect(LongToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
ImmutableLongBag |
newWith(long element) |
|
ImmutableLongBag |
newWithAll(LongIterable elements) |
|
ImmutableLongBag |
newWithout(long element) |
|
ImmutableLongBag |
newWithoutAll(LongIterable elements) |
|
ImmutableLongBag |
reject(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
ImmutableLongBag |
select(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
ImmutableLongBag |
selectByOccurrences(IntPredicate predicate) |
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
default ImmutableLongBag |
selectDuplicates() |
Returns all elements of the bag that have more than one occurrence.
|
default ImmutableLongSet |
selectUnique() |
Returns all elements of the bag that have exactly one occurrence.
|
default ImmutableLongBag |
tap(LongProcedure procedure) |
|
ImmutableList<LongIntPair> |
topOccurrences(int count) |
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutable, toStringOfItemToCount
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, longIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
ImmutableLongBag select(LongPredicate predicate)
LongIterable
select
in interface ImmutableLongCollection
select
in interface LongBag
select
in interface LongIterable
ImmutableLongBag reject(LongPredicate predicate)
LongIterable
reject
in interface ImmutableLongCollection
reject
in interface LongBag
reject
in interface LongIterable
default ImmutableLongBag tap(LongProcedure procedure)
tap
in interface ImmutableLongCollection
tap
in interface LongBag
tap
in interface LongIterable
ImmutableLongBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface LongBag
default ImmutableLongBag selectDuplicates()
selectDuplicates
in interface LongBag
default ImmutableLongSet selectUnique()
selectUnique
in interface LongBag
ImmutableList<LongIntPair> 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 LongBag
ImmutableList<LongIntPair> 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 LongBag
<V> ImmutableBag<V> collect(LongToObjectFunction<? extends V> function)
LongIterable
collect
in interface ImmutableLongCollection
collect
in interface LongBag
collect
in interface LongIterable
ImmutableLongBag newWith(long element)
newWith
in interface ImmutableLongCollection
ImmutableLongBag newWithout(long element)
newWithout
in interface ImmutableLongCollection
ImmutableLongBag newWithAll(LongIterable elements)
newWithAll
in interface ImmutableLongCollection
ImmutableLongBag newWithoutAll(LongIterable elements)
newWithoutAll
in interface ImmutableLongCollection
Copyright © 2004–2018. All rights reserved.