LongIterable
, PrimitiveIterable
ImmutableLongBag
, ImmutableLongList
, ImmutableLongSet
AbstractImmutableLongSet
public interface ImmutableLongCollection extends LongIterable
Modifier and Type | Method | Description |
---|---|---|
<V> ImmutableCollection<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.
|
ImmutableLongCollection |
newWith(long element) |
|
ImmutableLongCollection |
newWithAll(LongIterable elements) |
|
ImmutableLongCollection |
newWithout(long element) |
|
ImmutableLongCollection |
newWithoutAll(LongIterable elements) |
|
ImmutableLongCollection |
reject(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
ImmutableLongCollection |
select(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
default ImmutableLongCollection |
tap(LongProcedure procedure) |
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, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
<V> ImmutableCollection<V> collect(LongToObjectFunction<? extends V> function)
LongIterable
collect
in interface LongIterable
default ImmutableLongCollection tap(LongProcedure procedure)
tap
in interface LongIterable
ImmutableLongCollection select(LongPredicate predicate)
LongIterable
select
in interface LongIterable
ImmutableLongCollection reject(LongPredicate predicate)
LongIterable
reject
in interface LongIterable
ImmutableLongCollection newWith(long element)
ImmutableLongCollection newWithout(long element)
ImmutableLongCollection newWithAll(LongIterable elements)
ImmutableLongCollection newWithoutAll(LongIterable elements)
Copyright © 2004–2019. All rights reserved.