| Package | Description |
|---|---|
| com.landawn.abacus.util |
| Modifier and Type | Method and Description |
|---|---|
static u.OptionalInt |
Numbers.createInteger(String str)
Convert a
String to a Integer, handling hex
(0xhhhh) and octal (0dddd) notations. |
static u.OptionalInt |
u.OptionalInt.empty() |
<E extends Exception> |
u.OptionalInt.filter(Throwables.IntPredicate<E> predicate) |
<E extends Exception> |
u.OptionalInt.flatMap(Throwables.IntFunction<u.OptionalInt,E> mapper) |
<E extends Exception> |
u.OptionalInt.ifPresent(Throwables.IntConsumer<E> action) |
<E extends Exception,E2 extends Exception> |
u.OptionalInt.ifPresentOrElse(Throwables.IntConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
static u.OptionalInt |
Iterables.indexOf(Collection<?> c,
Object objToFind) |
static u.OptionalInt |
Iterables.indexOf(Object[] a,
Object objToFind) |
static u.OptionalInt |
Index.last(boolean[] a,
boolean valueToFind) |
static u.OptionalInt |
Index.last(boolean[] a,
int startIndexFromBack,
boolean valueToFind) |
static u.OptionalInt |
Index.last(byte[] a,
byte valueToFind) |
static u.OptionalInt |
Index.last(byte[] a,
int startIndexFromBack,
byte valueToFind) |
static u.OptionalInt |
Index.last(char[] a,
char valueToFind) |
static u.OptionalInt |
Index.last(char[] a,
int startIndexFromBack,
char valueToFind) |
static u.OptionalInt |
Index.last(Collection<?> c,
int startIndexFromBack,
Object valueToFind) |
static u.OptionalInt |
Index.last(Collection<?> c,
Object valueToFind) |
static u.OptionalInt |
Index.last(double[] a,
double valueToFind) |
static u.OptionalInt |
Index.last(double[] a,
double valueToFind,
double tolerance) |
static u.OptionalInt |
Index.last(double[] a,
int startIndexFromBack,
double valueToFind) |
static u.OptionalInt |
Index.last(double[] a,
int startIndexFromBack,
double valueToFind,
double tolerance) |
static u.OptionalInt |
Index.last(float[] a,
float valueToFind) |
static u.OptionalInt |
Index.last(float[] a,
int startIndexFromBack,
float valueToFind) |
static u.OptionalInt |
Index.last(int[] a,
int valueToFind) |
static u.OptionalInt |
Index.last(int[] a,
int startIndexFromBack,
int valueToFind) |
static u.OptionalInt |
Index.last(long[] a,
int startIndexFromBack,
long valueToFind) |
static u.OptionalInt |
Index.last(long[] a,
long valueToFind) |
static u.OptionalInt |
Index.last(Object[] a,
int startIndexFromBack,
Object valueToFind) |
static u.OptionalInt |
Index.last(Object[] a,
Object valueToFind) |
static u.OptionalInt |
Index.last(short[] a,
int startIndexFromBack,
short valueToFind) |
static u.OptionalInt |
Index.last(short[] a,
short valueToFind) |
static u.OptionalInt |
Index.last(String str,
int valueToFind) |
static u.OptionalInt |
Index.last(String str,
int startIndexFromBack,
int valueToFind) |
static u.OptionalInt |
Index.last(String str,
int startIndexFromBack,
String valueToFind) |
static u.OptionalInt |
Index.last(String str,
String valueToFind) |
static u.OptionalInt |
Iterables.lastIndexOf(Collection<?> c,
Object objToFind) |
static u.OptionalInt |
Iterables.lastIndexOf(Object[] a,
Object objToFind) |
static u.OptionalInt |
Index.lastOfSubArray(boolean[] sourceArray,
boolean[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(boolean[] sourceArray,
int startIndexFromBack,
boolean[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(boolean[] sourceArray,
int startIndexFromBack,
boolean[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Last of sub array.
|
static u.OptionalInt |
Index.lastOfSubArray(byte[] sourceArray,
byte[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(byte[] sourceArray,
int startIndexFromBack,
byte[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(byte[] sourceArray,
int startIndexFromBack,
byte[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Last of sub array.
|
static u.OptionalInt |
Index.lastOfSubArray(char[] sourceArray,
char[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(char[] sourceArray,
int startIndexFromBack,
char[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(char[] sourceArray,
int startIndexFromBack,
char[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Last of sub array.
|
static u.OptionalInt |
Index.lastOfSubArray(double[] sourceArray,
double[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(double[] sourceArray,
int startIndexFromBack,
double[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(double[] sourceArray,
int startIndexFromBack,
double[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Last of sub array.
|
static u.OptionalInt |
Index.lastOfSubArray(float[] sourceArray,
float[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(float[] sourceArray,
int startIndexFromBack,
float[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(float[] sourceArray,
int startIndexFromBack,
float[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Last of sub array.
|
static u.OptionalInt |
Index.lastOfSubArray(int[] sourceArray,
int[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(int[] sourceArray,
int startIndexFromBack,
int[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(int[] sourceArray,
int startIndexFromBack,
int[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Last of sub array.
|
static u.OptionalInt |
Index.lastOfSubArray(long[] sourceArray,
int startIndexFromBack,
long[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(long[] sourceArray,
int startIndexFromBack,
long[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Last of sub array.
|
static u.OptionalInt |
Index.lastOfSubArray(long[] sourceArray,
long[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(Object[] sourceArray,
int startIndexFromBack,
Object[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(Object[] sourceArray,
int startIndexFromBack,
Object[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Last of sub array.
|
static u.OptionalInt |
Index.lastOfSubArray(Object[] sourceArray,
Object[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(short[] sourceArray,
int startIndexFromBack,
short[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubArray(short[] sourceArray,
int startIndexFromBack,
short[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Last of sub array.
|
static u.OptionalInt |
Index.lastOfSubArray(short[] sourceArray,
short[] subArrayToFind) |
static u.OptionalInt |
Index.lastOfSubList(List<?> sourceList,
int startIndexFromBack,
List<?> subListToFind) |
static u.OptionalInt |
Index.lastOfSubList(List<?> sourceList,
int startIndexFromBack,
List<?> subArrayToFind,
int beginIndexOfTargetSubList,
int size)
Last of sub list.
|
static u.OptionalInt |
Index.lastOfSubList(List<?> sourceList,
List<?> subListToFind) |
<E extends Exception> |
u.OptionalInt.map(Throwables.IntUnaryOperator<E> mapper) |
<E extends Exception> |
u.Optional.mapToInt(Throwables.ToIntFunction<? super T,E> mapper)
Map to int.
|
<E extends Exception> |
u.Nullable.mapToInt(Throwables.ToIntFunction<? super T,E> mapper)
Map to int.
|
<E extends Exception> |
u.OptionalByte.mapToInt(Throwables.ToIntFunction<Byte,E> mapper)
Map to int.
|
<E extends Exception> |
u.OptionalChar.mapToInt(Throwables.ToIntFunction<Character,E> mapper)
Map to int.
|
<E extends Exception> |
u.OptionalDouble.mapToInt(Throwables.ToIntFunction<Double,E> mapper)
Map to int.
|
<E extends Exception> |
u.OptionalFloat.mapToInt(Throwables.ToIntFunction<Float,E> mapper)
Map to int.
|
<E extends Exception> |
u.OptionalLong.mapToInt(Throwables.ToIntFunction<Long,E> mapper)
Map to int.
|
<E extends Exception> |
u.OptionalShort.mapToInt(Throwables.ToIntFunction<Short,E> mapper)
Map to int.
|
<E extends Exception> |
u.Nullable.mapToIntIfNotNull(Throwables.ToIntFunction<? super T,E> mapper)
Map to int if not null.
|
static u.OptionalInt |
Iterables.max(int... a)
Returns
OptionalInt.empty() if the specified Array/Collection is null or empty. |
static u.OptionalInt |
Iterables.min(int... a)
Returns
OptionalInt.empty() if the specified Array/Collection is null or empty. |
static u.OptionalInt |
Index.of(boolean[] a,
boolean valueToFind) |
static u.OptionalInt |
Index.of(boolean[] a,
int startIndex,
boolean valueToFind) |
static u.OptionalInt |
Index.of(byte[] a,
byte valueToFind) |
static u.OptionalInt |
Index.of(byte[] a,
int startIndex,
byte valueToFind) |
static u.OptionalInt |
Index.of(char[] a,
char valueToFind) |
static u.OptionalInt |
Index.of(char[] a,
int startIndex,
char valueToFind) |
static u.OptionalInt |
Index.of(Collection<?> c,
int startIndex,
Object valueToFind) |
static u.OptionalInt |
Index.of(Collection<?> c,
Object valueToFind) |
static u.OptionalInt |
Index.of(double[] a,
double valueToFind) |
static u.OptionalInt |
Index.of(double[] a,
double valueToFind,
double tolerance) |
static u.OptionalInt |
Index.of(double[] a,
int startIndex,
double valueToFind) |
static u.OptionalInt |
Index.of(double[] a,
int startIndex,
double valueToFind,
double tolerance) |
static u.OptionalInt |
Index.of(float[] a,
float valueToFind) |
static u.OptionalInt |
Index.of(float[] a,
int startIndex,
float valueToFind) |
static u.OptionalInt |
u.OptionalInt.of(int value) |
static u.OptionalInt |
Index.of(int[] a,
int valueToFind) |
static u.OptionalInt |
Index.of(int[] a,
int startIndex,
int valueToFind) |
static u.OptionalInt |
Index.of(Iterator<?> iter,
int startIndex,
Object valueToFind) |
static u.OptionalInt |
Index.of(Iterator<?> iter,
Object valueToFind) |
static u.OptionalInt |
Index.of(long[] a,
int startIndex,
long valueToFind) |
static u.OptionalInt |
Index.of(long[] a,
long valueToFind) |
static u.OptionalInt |
Index.of(Object[] a,
int startIndex,
Object valueToFind) |
static u.OptionalInt |
Index.of(Object[] a,
Object valueToFind) |
static u.OptionalInt |
Index.of(short[] a,
int startIndex,
short valueToFind) |
static u.OptionalInt |
Index.of(short[] a,
short valueToFind) |
static u.OptionalInt |
Index.of(String str,
int valueToFind) |
static u.OptionalInt |
Index.of(String str,
int startIndex,
int valueToFind) |
static u.OptionalInt |
Index.of(String str,
int startIndex,
String valueToFind) |
static u.OptionalInt |
Index.of(String str,
String valueToFind) |
static u.OptionalInt |
u.OptionalInt.ofNullable(Integer val) |
static u.OptionalInt |
Index.ofSubArray(boolean[] sourceArray,
boolean[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(boolean[] sourceArray,
int startIndex,
boolean[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(boolean[] sourceArray,
int startIndex,
boolean[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Of sub array.
|
static u.OptionalInt |
Index.ofSubArray(byte[] sourceArray,
byte[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(byte[] sourceArray,
int startIndex,
byte[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(byte[] sourceArray,
int startIndex,
byte[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Of sub array.
|
static u.OptionalInt |
Index.ofSubArray(char[] sourceArray,
char[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(char[] sourceArray,
int startIndex,
char[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(char[] sourceArray,
int startIndex,
char[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Of sub array.
|
static u.OptionalInt |
Index.ofSubArray(double[] sourceArray,
double[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(double[] sourceArray,
int startIndex,
double[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(double[] sourceArray,
int startIndex,
double[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Of sub array.
|
static u.OptionalInt |
Index.ofSubArray(float[] sourceArray,
float[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(float[] sourceArray,
int startIndex,
float[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(float[] sourceArray,
int startIndex,
float[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Of sub array.
|
static u.OptionalInt |
Index.ofSubArray(int[] sourceArray,
int[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(int[] sourceArray,
int startIndex,
int[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(int[] sourceArray,
int startIndex,
int[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Of sub array.
|
static u.OptionalInt |
Index.ofSubArray(long[] sourceArray,
int startIndex,
long[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(long[] sourceArray,
int startIndex,
long[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Of sub array.
|
static u.OptionalInt |
Index.ofSubArray(long[] sourceArray,
long[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(Object[] sourceArray,
int startIndex,
Object[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(Object[] sourceArray,
int startIndex,
Object[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Of sub array.
|
static u.OptionalInt |
Index.ofSubArray(Object[] sourceArray,
Object[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(short[] sourceArray,
int startIndex,
short[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubArray(short[] sourceArray,
int startIndex,
short[] subArrayToFind,
int beginIndexOfTargetSubArray,
int size)
Of sub array.
|
static u.OptionalInt |
Index.ofSubArray(short[] sourceArray,
short[] subArrayToFind) |
static u.OptionalInt |
Index.ofSubList(List<?> sourceList,
int startIndex,
List<?> subListToFind) |
static u.OptionalInt |
Index.ofSubList(List<?> sourceList,
int startIndex,
List<?> subListToFind,
int beginIndexOfTargetSubList,
int size)
Of sub list.
|
static u.OptionalInt |
Index.ofSubList(List<?> sourceList,
List<?> subListToFind) |
<E extends Exception> |
u.OptionalInt.or(Throwables.Supplier<u.OptionalInt,E> supplier) |
| Modifier and Type | Method and Description |
|---|---|
int |
u.OptionalInt.compareTo(u.OptionalInt optional) |
| Modifier and Type | Method and Description |
|---|---|
<E extends Exception> |
u.OptionalInt.flatMap(Throwables.IntFunction<u.OptionalInt,E> mapper) |
<E extends Exception> |
u.OptionalInt.or(Throwables.Supplier<u.OptionalInt,E> supplier) |
Copyright © 2021. All rights reserved.