| Modifier and Type | Class and Description |
|---|---|
static class |
If.OrElse
The Class OrElse.
|
| Modifier and Type | Method and Description |
|---|---|
static If |
exists(int index)
true for index >= 0, false for index < 0. |
static If |
is(boolean b)
Checks if is.
|
static If |
isNullOrEmpty(boolean[] a)
Checks if is null or empty.
|
static If |
isNullOrEmpty(byte[] a)
Checks if is null or empty.
|
static If |
isNullOrEmpty(char[] a)
Checks if is null or empty.
|
static If |
isNullOrEmpty(CharSequence s)
Checks if is null or empty.
|
static If |
isNullOrEmpty(Collection<?> c)
Checks if is null or empty.
|
static If |
isNullOrEmpty(double[] a)
Checks if is null or empty.
|
static If |
isNullOrEmpty(float[] a)
Checks if is null or empty.
|
static If |
isNullOrEmpty(int[] a)
Checks if is null or empty.
|
static If |
isNullOrEmpty(long[] a)
Checks if is null or empty.
|
static If |
isNullOrEmpty(Map<?,?> m)
Checks if is null or empty.
|
static If |
isNullOrEmpty(Multimap<?,?,?> m)
Checks if is null or empty.
|
static If |
isNullOrEmpty(Multiset<?> s)
Checks if is null or empty.
|
static If |
isNullOrEmpty(Object[] a)
Checks if is null or empty.
|
static If |
isNullOrEmpty(short[] a)
Checks if is null or empty.
|
static If |
isNullOrEmptyOrBlank(CharSequence s)
Checks if is null or empty or blank.
|
static If |
not(boolean b) |
static If |
notNullOrEmpty(boolean[] a)
Not null or empty.
|
static If |
notNullOrEmpty(byte[] a)
Not null or empty.
|
static If |
notNullOrEmpty(char[] a)
Not null or empty.
|
static If |
notNullOrEmpty(CharSequence s)
Not null or empty.
|
static If |
notNullOrEmpty(Collection<?> c)
Not null or empty.
|
static If |
notNullOrEmpty(double[] a)
Not null or empty.
|
static If |
notNullOrEmpty(float[] a)
Not null or empty.
|
static If |
notNullOrEmpty(int[] a)
Not null or empty.
|
static If |
notNullOrEmpty(long[] a)
Not null or empty.
|
static If |
notNullOrEmpty(Map<?,?> m)
Not null or empty.
|
static If |
notNullOrEmpty(Multimap<?,?,?> m)
Not null or empty.
|
static If |
notNullOrEmpty(Multiset<?> s)
Not null or empty.
|
static If |
notNullOrEmpty(Object[] a)
Not null or empty.
|
static If |
notNullOrEmpty(short[] a)
Not null or empty.
|
static If |
notNullOrEmptyOrBlank(CharSequence s)
Not null or empty or blank.
|
<E extends Throwable> |
then(Throwables.Runnable<E> cmd) |
<U,E extends Throwable> |
then(U init,
Throwables.Consumer<? super U,E> action) |
If.OrElse |
thenDoNothing()
Then do nothing.
|
<E extends Throwable> |
thenThrow(Supplier<? extends E> exceptionSupplier) |
public static If is(boolean b)
b - public static If not(boolean b)
b - public static If exists(int index)
true for index >= 0, false for index < 0.index - public static If isNullOrEmpty(CharSequence s)
s - public static If isNullOrEmpty(boolean[] a)
a - public static If isNullOrEmpty(char[] a)
a - public static If isNullOrEmpty(byte[] a)
a - public static If isNullOrEmpty(short[] a)
a - public static If isNullOrEmpty(int[] a)
a - public static If isNullOrEmpty(long[] a)
a - public static If isNullOrEmpty(float[] a)
a - public static If isNullOrEmpty(double[] a)
a - public static If isNullOrEmpty(Object[] a)
a - public static If isNullOrEmpty(Collection<?> c)
c - public static If isNullOrEmpty(Map<?,?> m)
m - public static If isNullOrEmpty(Multiset<?> s)
s - public static If isNullOrEmpty(Multimap<?,?,?> m)
m - public static If isNullOrEmptyOrBlank(CharSequence s)
s - public static If notNullOrEmpty(CharSequence s)
s - public static If notNullOrEmpty(boolean[] a)
a - public static If notNullOrEmpty(char[] a)
a - public static If notNullOrEmpty(byte[] a)
a - public static If notNullOrEmpty(short[] a)
a - public static If notNullOrEmpty(int[] a)
a - public static If notNullOrEmpty(long[] a)
a - public static If notNullOrEmpty(float[] a)
a - public static If notNullOrEmpty(double[] a)
a - public static If notNullOrEmpty(Object[] a)
a - public static If notNullOrEmpty(Collection<?> c)
c - public static If notNullOrEmpty(Map<?,?> m)
m - public static If notNullOrEmpty(Multiset<?> s)
s - public static If notNullOrEmpty(Multimap<?,?,?> m)
m - public static If notNullOrEmptyOrBlank(CharSequence s)
s - public If.OrElse thenDoNothing()
public <E extends Throwable> If.OrElse then(Throwables.Runnable<E> cmd) throws E extends Throwable
E - cmd - E - the eE extends Throwablepublic <U,E extends Throwable> If.OrElse then(U init, Throwables.Consumer<? super U,E> action) throws E extends Throwable
U - E - init - action - E - the eE extends ThrowableCopyright © 2021. All rights reserved.