public final class DoubleList extends PrimitiveList<Double,double[],DoubleList>
Constructor and Description |
---|
DoubleList() |
DoubleList(double[] a)
The specified array is used as the element array for this list without copying action.
|
DoubleList(double[] a,
int size) |
DoubleList(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
<E extends Exception> |
accept(Throwables.Consumer<? super DoubleList,E> action) |
<E extends Exception> |
acceptIfNotEmpty(Throwables.Consumer<? super DoubleList,E> action)
Accept if not empty.
|
void |
add(double e) |
void |
add(int index,
double e) |
boolean |
addAll(double[] a)
Adds the all.
|
boolean |
addAll(DoubleList c)
Adds the all.
|
boolean |
addAll(int index,
double[] a)
Adds the all.
|
boolean |
addAll(int index,
DoubleList c)
Adds the all.
|
<E extends Exception> |
allMatch(int fromIndex,
int toIndex,
Throwables.DoublePredicate<E> filter) |
<E extends Exception> |
allMatch(Throwables.DoublePredicate<E> filter)
Returns whether all elements of this List match the provided predicate.
|
<E extends Exception> |
anyMatch(int fromIndex,
int toIndex,
Throwables.DoublePredicate<E> filter) |
<E extends Exception> |
anyMatch(Throwables.DoublePredicate<E> filter)
Returns whether any elements of this List match the provided predicate.
|
<R,E extends Exception> |
apply(Throwables.Function<? super DoubleList,R,E> func) |
<R,E extends Exception> |
applyIfNotEmpty(Throwables.Function<? super DoubleList,R,E> func)
Apply if not empty.
|
double[] |
array()
Returns the original element array without copying.
|
u.OptionalDouble |
average() |
u.OptionalDouble |
average(int fromIndex,
int toIndex) |
int |
binarySearch(double key)
This List should be sorted first.
|
int |
binarySearch(int fromIndex,
int toIndex,
double key)
This List should be sorted first.
|
List<Double> |
boxed() |
List<Double> |
boxed(int fromIndex,
int toIndex) |
void |
clear()
Clear.
|
boolean |
contains(double e) |
boolean |
containsAll(double[] a) |
boolean |
containsAll(DoubleList c) |
boolean |
containsAny(double[] a) |
boolean |
containsAny(DoubleList c) |
DoubleList |
copy() |
DoubleList |
copy(int fromIndex,
int toIndex) |
DoubleList |
copy(int from,
int to,
int step) |
static DoubleList |
copyOf(double[] a) |
static DoubleList |
copyOf(double[] a,
int fromIndex,
int toIndex) |
<E extends Exception> |
count(int fromIndex,
int toIndex,
Throwables.DoublePredicate<E> filter) |
<E extends Exception> |
count(Throwables.DoublePredicate<E> filter) |
double |
delete(int index) |
void |
deleteAll(int... indices) |
void |
deleteRange(int fromIndex,
int toIndex) |
DoubleList |
difference(double[] a) |
DoubleList |
difference(DoubleList b) |
boolean |
disjoint(double[] b) |
boolean |
disjoint(DoubleList c) |
DoubleList |
distinct(int fromIndex,
int toIndex) |
boolean |
equals(Object obj) |
void |
fill(double val) |
void |
fill(int fromIndex,
int toIndex,
double val) |
<E extends Exception> |
filter(int fromIndex,
int toIndex,
Throwables.DoublePredicate<E> filter) |
<E extends Exception> |
filter(int fromIndex,
int toIndex,
Throwables.DoublePredicate<E> filter,
int max) |
<E extends Exception> |
filter(Throwables.DoublePredicate<E> filter) |
<E extends Exception> |
filter(Throwables.DoublePredicate<E> filter,
int max) |
<E extends Exception> |
findFirst(Throwables.DoublePredicate<E> predicate) |
<E extends Exception> |
findFirstIndex(Throwables.DoublePredicate<E> predicate)
Find first index.
|
<E extends Exception> |
findLast(Throwables.DoublePredicate<E> predicate) |
<E extends Exception> |
findLastIndex(Throwables.DoublePredicate<E> predicate)
Find last index.
|
u.OptionalDouble |
first() |
<E extends Exception> |
forEach(int fromIndex,
int toIndex,
Throwables.DoubleConsumer<E> action) |
<E extends Exception> |
forEach(Throwables.DoubleConsumer<E> action) |
<E extends Exception> |
forEachIndexed(int fromIndex,
int toIndex,
Throwables.IndexedDoubleConsumer<E> action) |
<E extends Exception> |
forEachIndexed(Throwables.IndexedDoubleConsumer<E> action) |
static DoubleList |
from(Collection<Double> c) |
static DoubleList |
from(Collection<Double> c,
double defaultForNull) |
static DoubleList |
from(Collection<Double> c,
int fromIndex,
int toIndex) |
static DoubleList |
from(Collection<Double> c,
int fromIndex,
int toIndex,
double defaultForNull) |
double |
get(int index) |
boolean |
hasDuplicates()
Checks for duplicates.
|
int |
hashCode() |
int |
indexOf(double e) |
int |
indexOf(int fromIndex,
double e) |
DoubleList |
intersection(double[] a) |
DoubleList |
intersection(DoubleList b) |
boolean |
isEmpty()
Checks if is empty.
|
DoubleIterator |
iterator() |
String |
join(int fromIndex,
int toIndex,
char delimiter) |
String |
join(int fromIndex,
int toIndex,
String delimiter) |
u.OptionalDouble |
kthLargest(int k) |
u.OptionalDouble |
kthLargest(int fromIndex,
int toIndex,
int k) |
u.OptionalDouble |
last() |
int |
lastIndexOf(double e)
Last index of.
|
int |
lastIndexOf(int fromIndex,
double e)
Last index of.
|
<E extends Exception> |
map(int fromIndex,
int toIndex,
Throwables.DoubleUnaryOperator<E> mapper) |
<E extends Exception> |
map(Throwables.DoubleUnaryOperator<E> mapper) |
<T,E extends Exception> |
mapToObj(int fromIndex,
int toIndex,
Throwables.DoubleFunction<? extends T,E> mapper)
Map to obj.
|
<T,E extends Exception> |
mapToObj(Throwables.DoubleFunction<? extends T,E> mapper)
Map to obj.
|
u.OptionalDouble |
max() |
u.OptionalDouble |
max(int fromIndex,
int toIndex) |
u.OptionalDouble |
median() |
u.OptionalDouble |
median(int fromIndex,
int toIndex) |
u.OptionalDouble |
min() |
u.OptionalDouble |
min(int fromIndex,
int toIndex) |
<E extends Exception> |
noneMatch(int fromIndex,
int toIndex,
Throwables.DoublePredicate<E> filter) |
<E extends Exception> |
noneMatch(Throwables.DoublePredicate<E> filter)
Returns whether no elements of this List match the provided predicate.
|
int |
occurrencesOf(double objectToFind) |
static DoubleList |
of(double... a) |
static DoubleList |
of(double[] a,
int size) |
void |
parallelSort()
Parallel sort.
|
static DoubleList |
random(int len) |
<E extends Exception> |
reduce(double identity,
Throwables.DoubleBinaryOperator<E> accumulator)
This is equivalent to:
|
<E extends Exception> |
reduce(Throwables.DoubleBinaryOperator<E> accumulator)
This is equivalent to:
|
boolean |
remove(double e) |
boolean |
removeAll(double[] a)
Removes the all.
|
boolean |
removeAll(DoubleList c)
Removes the all.
|
boolean |
removeAllOccurrences(double e)
Removes the all occurrences.
|
<E extends Exception> |
removeIf(Throwables.DoublePredicate<E> p)
Removes the if.
|
static DoubleList |
repeat(double element,
int len) |
int |
replaceAll(double oldVal,
double newVal) |
<E extends Exception> |
replaceAll(Throwables.DoubleUnaryOperator<E> operator) |
<E extends Exception> |
replaceIf(Throwables.DoublePredicate<E> predicate,
double newValue) |
boolean |
retainAll(double[] a) |
boolean |
retainAll(DoubleList c) |
void |
reverse()
Reverse.
|
void |
reverse(int fromIndex,
int toIndex) |
void |
reverseSort()
Reverse sort.
|
void |
rotate(int distance) |
double |
set(int index,
double e) |
void |
shuffle()
Shuffle.
|
void |
shuffle(Random rnd) |
int |
size() |
void |
sort()
Sort.
|
List<DoubleList> |
split(int fromIndex,
int toIndex,
int chunkSize)
Returns List of
DoubleList with consecutive sub sequences of the elements, each of the same size (the final sequence may be smaller). |
DoubleStream |
stream() |
DoubleStream |
stream(int fromIndex,
int toIndex) |
double |
sum() |
double |
sum(int fromIndex,
int toIndex) |
void |
swap(int i,
int j) |
DoubleList |
symmetricDifference(double[] a) |
DoubleList |
symmetricDifference(DoubleList b) |
double[] |
toArray() |
<C extends Collection<Double>> |
toCollection(int fromIndex,
int toIndex,
IntFunction<? extends C> supplier) |
<K,A,D,E extends Exception> |
toMap(Throwables.DoubleFunction<? extends K,E> keyMapper,
Collector<Double,A,D> downstream) |
<K,A,D,M extends Map<K,D>,E extends Exception> |
toMap(Throwables.DoubleFunction<? extends K,E> keyMapper,
Collector<Double,A,D> downstream,
IntFunction<? extends M> mapFactory) |
<K,V,E extends Exception,E2 extends Exception> |
toMap(Throwables.DoubleFunction<? extends K,E> keyMapper,
Throwables.DoubleFunction<? extends V,E2> valueMapper) |
<K,V,M extends Map<K,V>,E extends Exception,E2 extends Exception> |
toMap(Throwables.DoubleFunction<? extends K,E> keyMapper,
Throwables.DoubleFunction<? extends V,E2> valueMapper,
IntFunction<? extends M> mapFactory) |
<K,V,E extends Exception,E2 extends Exception,E3 extends Exception> |
toMap(Throwables.DoubleFunction<? extends K,E> keyMapper,
Throwables.DoubleFunction<? extends V,E2> valueMapper,
Throwables.BinaryOperator<V,E3> mergeFunction) |
<K,V,M extends Map<K,V>,E extends Exception,E2 extends Exception,E3 extends Exception> |
toMap(Throwables.DoubleFunction<? extends K,E> keyMapper,
Throwables.DoubleFunction<? extends V,E2> valueMapper,
Throwables.BinaryOperator<V,E3> mergeFunction,
IntFunction<? extends M> mapFactory) |
Multiset<Double> |
toMultiset(int fromIndex,
int toIndex,
IntFunction<Multiset<Double>> supplier) |
DoubleList |
top(int n) |
DoubleList |
top(int n,
Comparator<? super Double> cmp) |
DoubleList |
top(int fromIndex,
int toIndex,
int n) |
DoubleList |
top(int fromIndex,
int toIndex,
int n,
Comparator<? super Double> cmp) |
String |
toString() |
DoubleList |
trimToSize()
Trim to size.
|
distinct, join, join, join, join, println, split, toCollection, toList, toList, toMultiset, toMultiset, toMultiset, toSet, toSet
public DoubleList()
public DoubleList(int initialCapacity)
public DoubleList(double[] a)
a
- public DoubleList(double[] a, int size)
@SafeVarargs public static DoubleList of(double... a)
a
- public static DoubleList of(double[] a, int size)
a
- size
- public static DoubleList copyOf(double[] a)
a
- public static DoubleList copyOf(double[] a, int fromIndex, int toIndex)
a
- fromIndex
- toIndex
- public static DoubleList from(Collection<Double> c)
c
- public static DoubleList from(Collection<Double> c, double defaultForNull)
c
- defaultForNull
- public static DoubleList from(Collection<Double> c, int fromIndex, int toIndex)
c
- fromIndex
- toIndex
- public static DoubleList from(Collection<Double> c, int fromIndex, int toIndex, double defaultForNull)
c
- fromIndex
- toIndex
- defaultForNull
- public static DoubleList repeat(double element, int len)
element
- len
- public static DoubleList random(int len)
len
- public double[] array()
array
in class PrimitiveList<Double,double[],DoubleList>
public double get(int index)
index
- public double set(int index, double e)
index
- e
- public void add(double e)
e
- public void add(int index, double e)
index
- e
- public boolean addAll(DoubleList c)
c
- public boolean addAll(int index, DoubleList c)
index
- c
- public boolean addAll(double[] a)
addAll
in class PrimitiveList<Double,double[],DoubleList>
a
- public boolean addAll(int index, double[] a)
addAll
in class PrimitiveList<Double,double[],DoubleList>
index
- a
- public boolean remove(double e)
e
- public boolean removeAllOccurrences(double e)
e
- public boolean removeAll(DoubleList c)
c
- public boolean removeAll(double[] a)
removeAll
in class PrimitiveList<Double,double[],DoubleList>
a
- public <E extends Exception> boolean removeIf(Throwables.DoublePredicate<E> p) throws E extends Exception
E
- p
- E
- the eE extends Exception
public boolean retainAll(DoubleList c)
c
- public boolean retainAll(double[] a)
a
- public double delete(int index)
index
- @SafeVarargs public final void deleteAll(int... indices)
deleteAll
in class PrimitiveList<Double,double[],DoubleList>
indices
- public void deleteRange(int fromIndex, int toIndex)
deleteRange
in class PrimitiveList<Double,double[],DoubleList>
fromIndex
- toIndex
- public int replaceAll(double oldVal, double newVal)
oldVal
- newVal
- public <E extends Exception> void replaceAll(Throwables.DoubleUnaryOperator<E> operator) throws E extends Exception
E
- operator
- E
- the eE extends Exception
public <E extends Exception> boolean replaceIf(Throwables.DoublePredicate<E> predicate, double newValue) throws E extends Exception
E
- predicate
- newValue
- E
- the eE extends Exception
public void fill(double val)
val
- public void fill(int fromIndex, int toIndex, double val)
fromIndex
- toIndex
- val
- public boolean contains(double e)
e
- public boolean containsAll(DoubleList c)
c
- public boolean containsAll(double[] a)
containsAll
in class PrimitiveList<Double,double[],DoubleList>
a
- public boolean containsAny(DoubleList c)
c
- public boolean containsAny(double[] a)
containsAny
in class PrimitiveList<Double,double[],DoubleList>
a
- public boolean disjoint(DoubleList c)
c
- public boolean disjoint(double[] b)
disjoint
in class PrimitiveList<Double,double[],DoubleList>
b
- public DoubleList intersection(DoubleList b)
b
- IntList.intersection(IntList)
public DoubleList intersection(double[] a)
a
- public DoubleList difference(DoubleList b)
b
- IntList.difference(IntList)
public DoubleList difference(double[] a)
a
- public DoubleList symmetricDifference(DoubleList b)
b
- IntList.symmetricDifference(IntList)
public DoubleList symmetricDifference(double[] a)
a
- public int occurrencesOf(double objectToFind)
objectToFind
- public int indexOf(double e)
e
- public int indexOf(int fromIndex, double e)
fromIndex
- e
- public int lastIndexOf(double e)
e
- public int lastIndexOf(int fromIndex, double e)
fromIndex
- the start index to traverse backwards from. Inclusive.e
- public u.OptionalDouble min()
public u.OptionalDouble min(int fromIndex, int toIndex)
fromIndex
- toIndex
- public u.OptionalDouble median()
public u.OptionalDouble median(int fromIndex, int toIndex)
fromIndex
- toIndex
- public u.OptionalDouble max()
public u.OptionalDouble max(int fromIndex, int toIndex)
fromIndex
- toIndex
- public u.OptionalDouble kthLargest(int k)
k
- public u.OptionalDouble kthLargest(int fromIndex, int toIndex, int k)
fromIndex
- toIndex
- k
- public double sum()
public double sum(int fromIndex, int toIndex)
fromIndex
- toIndex
- public u.OptionalDouble average()
public u.OptionalDouble average(int fromIndex, int toIndex)
fromIndex
- toIndex
- public <E extends Exception> void forEach(Throwables.DoubleConsumer<E> action) throws E extends Exception
E
- action
- E
- the eE extends Exception
public <E extends Exception> void forEach(int fromIndex, int toIndex, Throwables.DoubleConsumer<E> action) throws E extends Exception
E
- fromIndex
- toIndex
- action
- E
- the eE extends Exception
public <E extends Exception> void forEachIndexed(Throwables.IndexedDoubleConsumer<E> action) throws E extends Exception
E
- action
- E
- the eE extends Exception
public <E extends Exception> void forEachIndexed(int fromIndex, int toIndex, Throwables.IndexedDoubleConsumer<E> action) throws E extends Exception
E
- fromIndex
- toIndex
- action
- E
- the eE extends Exception
public u.OptionalDouble first()
public u.OptionalDouble last()
public <E extends Exception> u.OptionalDouble findFirst(Throwables.DoublePredicate<E> predicate) throws E extends Exception
E
- predicate
- E
- the eE extends Exception
public <E extends Exception> u.OptionalDouble findLast(Throwables.DoublePredicate<E> predicate) throws E extends Exception
E
- predicate
- E
- the eE extends Exception
public <E extends Exception> u.OptionalInt findFirstIndex(Throwables.DoublePredicate<E> predicate) throws E extends Exception
E
- predicate
- E
- the eE extends Exception
public <E extends Exception> u.OptionalInt findLastIndex(Throwables.DoublePredicate<E> predicate) throws E extends Exception
E
- predicate
- E
- the eE extends Exception
public <E extends Exception> boolean allMatch(Throwables.DoublePredicate<E> filter) throws E extends Exception
E
- filter
- E
- the eE extends Exception
public <E extends Exception> boolean allMatch(int fromIndex, int toIndex, Throwables.DoublePredicate<E> filter) throws E extends Exception
E
- fromIndex
- toIndex
- filter
- E
- the eE extends Exception
public <E extends Exception> boolean anyMatch(Throwables.DoublePredicate<E> filter) throws E extends Exception
E
- filter
- E
- the eE extends Exception
public <E extends Exception> boolean anyMatch(int fromIndex, int toIndex, Throwables.DoublePredicate<E> filter) throws E extends Exception
E
- fromIndex
- toIndex
- filter
- E
- the eE extends Exception
public <E extends Exception> boolean noneMatch(Throwables.DoublePredicate<E> filter) throws E extends Exception
E
- filter
- E
- the eE extends Exception
public <E extends Exception> boolean noneMatch(int fromIndex, int toIndex, Throwables.DoublePredicate<E> filter) throws E extends Exception
E
- fromIndex
- toIndex
- filter
- E
- the eE extends Exception
public <E extends Exception> int count(Throwables.DoublePredicate<E> filter) throws E extends Exception
E
- filter
- E
- the eE extends Exception
public <E extends Exception> int count(int fromIndex, int toIndex, Throwables.DoublePredicate<E> filter) throws E extends Exception
E
- fromIndex
- toIndex
- filter
- E
- the eE extends Exception
public <E extends Exception> DoubleList filter(Throwables.DoublePredicate<E> filter) throws E extends Exception
E
- filter
- E
- the eE extends Exception
public <E extends Exception> DoubleList filter(int fromIndex, int toIndex, Throwables.DoublePredicate<E> filter) throws E extends Exception
E
- fromIndex
- toIndex
- filter
- E
- the eE extends Exception
public <E extends Exception> DoubleList filter(Throwables.DoublePredicate<E> filter, int max) throws E extends Exception
E
- filter
- max
- E
- the eE extends Exception
public <E extends Exception> DoubleList filter(int fromIndex, int toIndex, Throwables.DoublePredicate<E> filter, int max) throws E extends Exception
E
- fromIndex
- toIndex
- filter
- max
- E
- the eE extends Exception
public <E extends Exception> DoubleList map(Throwables.DoubleUnaryOperator<E> mapper) throws E extends Exception
E
- mapper
- E
- the eE extends Exception
public <E extends Exception> DoubleList map(int fromIndex, int toIndex, Throwables.DoubleUnaryOperator<E> mapper) throws E extends Exception
E
- fromIndex
- toIndex
- mapper
- E
- the eE extends Exception
public <T,E extends Exception> List<T> mapToObj(Throwables.DoubleFunction<? extends T,E> mapper) throws E extends Exception
T
- E
- mapper
- E
- the eE extends Exception
public <T,E extends Exception> List<T> mapToObj(int fromIndex, int toIndex, Throwables.DoubleFunction<? extends T,E> mapper) throws E extends Exception
T
- E
- fromIndex
- toIndex
- mapper
- E
- the eE extends Exception
public <E extends Exception> u.OptionalDouble reduce(Throwables.DoubleBinaryOperator<E> accumulator) throws E extends Exception
if (isEmpty()) {
return OptionalDouble.empty();
}
double result = elementData[0];
for (int i = 1; i < size; i++) {
result = accumulator.applyAsDouble(result, elementData[i]);
}
return OptionalDouble.of(result);
E
- accumulator
- E
- the eE extends Exception
public <E extends Exception> double reduce(double identity, Throwables.DoubleBinaryOperator<E> accumulator) throws E extends Exception
if (isEmpty()) {
return identity;
}
double result = identity;
for (int i = 0; i < size; i++) {
result = accumulator.applyAsDouble(result, elementData[i]);
}
return result;
E
- identity
- accumulator
- E
- the eE extends Exception
public boolean hasDuplicates()
hasDuplicates
in class PrimitiveList<Double,double[],DoubleList>
public DoubleList distinct(int fromIndex, int toIndex)
distinct
in class PrimitiveList<Double,double[],DoubleList>
fromIndex
- toIndex
- public DoubleList top(int n)
n
- public DoubleList top(int fromIndex, int toIndex, int n)
fromIndex
- toIndex
- n
- public DoubleList top(int n, Comparator<? super Double> cmp)
n
- cmp
- public DoubleList top(int fromIndex, int toIndex, int n, Comparator<? super Double> cmp)
fromIndex
- toIndex
- n
- cmp
- public void sort()
sort
in class PrimitiveList<Double,double[],DoubleList>
public void parallelSort()
public void reverseSort()
public int binarySearch(double key)
key
- public int binarySearch(int fromIndex, int toIndex, double key)
fromIndex
- toIndex
- key
- public void reverse()
reverse
in class PrimitiveList<Double,double[],DoubleList>
public void reverse(int fromIndex, int toIndex)
reverse
in class PrimitiveList<Double,double[],DoubleList>
fromIndex
- toIndex
- public void rotate(int distance)
rotate
in class PrimitiveList<Double,double[],DoubleList>
distance
- public void shuffle()
shuffle
in class PrimitiveList<Double,double[],DoubleList>
public void shuffle(Random rnd)
shuffle
in class PrimitiveList<Double,double[],DoubleList>
rnd
- public void swap(int i, int j)
swap
in class PrimitiveList<Double,double[],DoubleList>
i
- j
- public DoubleList copy()
copy
in class PrimitiveList<Double,double[],DoubleList>
public DoubleList copy(int fromIndex, int toIndex)
copy
in class PrimitiveList<Double,double[],DoubleList>
fromIndex
- toIndex
- public DoubleList copy(int from, int to, int step)
copy
in class PrimitiveList<Double,double[],DoubleList>
from
- to
- step
- CommonUtil.copyOfRange(int[], int, int, int)
public List<DoubleList> split(int fromIndex, int toIndex, int chunkSize)
DoubleList
with consecutive sub sequences of the elements, each of the same size (the final sequence may be smaller).split
in class PrimitiveList<Double,double[],DoubleList>
fromIndex
- toIndex
- chunkSize
- the desired size of each sub sequence (the last may be smaller).public String join(int fromIndex, int toIndex, char delimiter)
join
in class PrimitiveList<Double,double[],DoubleList>
fromIndex
- toIndex
- delimiter
- public String join(int fromIndex, int toIndex, String delimiter)
join
in class PrimitiveList<Double,double[],DoubleList>
fromIndex
- toIndex
- delimiter
- public DoubleList trimToSize()
trimToSize
in class PrimitiveList<Double,double[],DoubleList>
public void clear()
clear
in class PrimitiveList<Double,double[],DoubleList>
public boolean isEmpty()
isEmpty
in class PrimitiveList<Double,double[],DoubleList>
public int size()
size
in class PrimitiveList<Double,double[],DoubleList>
public List<Double> boxed(int fromIndex, int toIndex)
fromIndex
- toIndex
- public double[] toArray()
toArray
in class PrimitiveList<Double,double[],DoubleList>
public <C extends Collection<Double>> C toCollection(int fromIndex, int toIndex, IntFunction<? extends C> supplier)
toCollection
in class PrimitiveList<Double,double[],DoubleList>
C
- fromIndex
- toIndex
- supplier
- public Multiset<Double> toMultiset(int fromIndex, int toIndex, IntFunction<Multiset<Double>> supplier)
toMultiset
in class PrimitiveList<Double,double[],DoubleList>
fromIndex
- toIndex
- supplier
- public <K,V,E extends Exception,E2 extends Exception> Map<K,V> toMap(Throwables.DoubleFunction<? extends K,E> keyMapper, Throwables.DoubleFunction<? extends V,E2> valueMapper) throws E extends Exception, E2 extends Exception
K
- the key typeV
- the value typeE
- E2
- keyMapper
- valueMapper
- E
- the eE2
- the e2E extends Exception
public <K,V,M extends Map<K,V>,E extends Exception,E2 extends Exception> M toMap(Throwables.DoubleFunction<? extends K,E> keyMapper, Throwables.DoubleFunction<? extends V,E2> valueMapper, IntFunction<? extends M> mapFactory) throws E extends Exception, E2 extends Exception
K
- the key typeV
- the value typeM
- E
- E2
- keyMapper
- valueMapper
- mapFactory
- E
- the eE2
- the e2E extends Exception
public <K,V,E extends Exception,E2 extends Exception,E3 extends Exception> Map<K,V> toMap(Throwables.DoubleFunction<? extends K,E> keyMapper, Throwables.DoubleFunction<? extends V,E2> valueMapper, Throwables.BinaryOperator<V,E3> mergeFunction) throws E extends Exception, E2 extends Exception, E3 extends Exception
K
- the key typeV
- the value typeE
- E2
- E3
- keyMapper
- valueMapper
- mergeFunction
- E
- the eE2
- the e2E3
- the e3E extends Exception
public <K,V,M extends Map<K,V>,E extends Exception,E2 extends Exception,E3 extends Exception> M toMap(Throwables.DoubleFunction<? extends K,E> keyMapper, Throwables.DoubleFunction<? extends V,E2> valueMapper, Throwables.BinaryOperator<V,E3> mergeFunction, IntFunction<? extends M> mapFactory) throws E extends Exception, E2 extends Exception, E3 extends Exception
K
- the key typeV
- the value typeM
- E
- E2
- E3
- keyMapper
- valueMapper
- mergeFunction
- mapFactory
- E
- the eE2
- the e2E3
- the e3E extends Exception
public <K,A,D,E extends Exception> Map<K,D> toMap(Throwables.DoubleFunction<? extends K,E> keyMapper, Collector<Double,A,D> downstream) throws E extends Exception
K
- the key typeA
- D
- E
- keyMapper
- downstream
- E
- the eE extends Exception
public <K,A,D,M extends Map<K,D>,E extends Exception> M toMap(Throwables.DoubleFunction<? extends K,E> keyMapper, Collector<Double,A,D> downstream, IntFunction<? extends M> mapFactory) throws E extends Exception
K
- the key typeA
- D
- M
- E
- keyMapper
- downstream
- mapFactory
- E
- the eE extends Exception
public DoubleIterator iterator()
public DoubleStream stream()
public DoubleStream stream(int fromIndex, int toIndex)
fromIndex
- toIndex
- public <R,E extends Exception> R apply(Throwables.Function<? super DoubleList,R,E> func) throws E extends Exception
apply
in class PrimitiveList<Double,double[],DoubleList>
R
- E
- func
- E
- the eE extends Exception
public <R,E extends Exception> u.Optional<R> applyIfNotEmpty(Throwables.Function<? super DoubleList,R,E> func) throws E extends Exception
applyIfNotEmpty
in class PrimitiveList<Double,double[],DoubleList>
R
- E
- func
- E
- the eE extends Exception
public <E extends Exception> void accept(Throwables.Consumer<? super DoubleList,E> action) throws E extends Exception
accept
in class PrimitiveList<Double,double[],DoubleList>
E
- action
- E
- the eE extends Exception
public <E extends Exception> If.OrElse acceptIfNotEmpty(Throwables.Consumer<? super DoubleList,E> action) throws E extends Exception
acceptIfNotEmpty
in class PrimitiveList<Double,double[],DoubleList>
E
- action
- E
- the eE extends Exception
public boolean equals(Object obj)
Copyright © 2020. All rights reserved.