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