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