public final class If<T> extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
If<T> |
and(boolean b) |
If<T> |
and(java.util.function.Supplier<Boolean> b) |
boolean |
condition() |
If<T> |
end() |
If<T> |
end(boolean withResult) |
If<T> |
or(boolean b) |
If<T> |
or(java.util.function.Supplier<Boolean> b) |
If<T> |
orbe(java.util.function.Supplier<T> s) |
If<T> |
orbe(T t) |
If<T> |
ordo(Runnable r) |
T |
result()
Get the result.
|
Optional<T> |
safeResult()
Get the result without exception.
|
static <T> If<T> |
that(boolean b) |
If<T> |
tobe(java.util.function.Supplier<T> s) |
If<T> |
tobe(T t) |
If<T> |
todo(Runnable r) |
public static <T> If<T> that(boolean b)
public If<T> or(java.util.function.Supplier<Boolean> b)
public If<T> and(java.util.function.Supplier<Boolean> b)
public If<T> tobe(java.util.function.Supplier<T> s)
public If<T> orbe(java.util.function.Supplier<T> s)
public boolean condition()
public T result() throws NoSuchElementException
NoSuchElementException - If there is no result be set.Copyright © 2018. All rights reserved.