类 IF
java.lang.Object
org.coodex.concrete.common.IF
Created by davidoff shen on 2016-08-29.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void当表达式exp为真时,抛出code异常static voidstatic voidis(boolean exp, ConcreteException ex) static voidstatic voidstatic voidis(Supplier<Boolean> exp, ConcreteException ex) static <T> Tstatic <T> Tstatic <T> TisNull(Supplier<T> o, ConcreteException exp) static <T> Tstatic <T> Tstatic <T> TisNull(Optional<T> o, ConcreteException exp) static <T> T当对象o为null是,抛出code异常static <T> Tstatic <T> TisNull(T o, ConcreteException exp) static void表达式为否事,抛出code异常static voidstatic voidnot(boolean exp, ConcreteException ex) static voidstatic voidstatic voidnot(Supplier<Boolean> exp, ConcreteException ex) static void当对象o不为null时,抛出code异常static voidstatic voidnotNull(Object o, ConcreteException ex)
-
构造器详细资料
-
IF
public IF()
-
-
方法详细资料
-
is
当表达式exp为真时,抛出code异常- 参数:
exp- testcode- error codeobjects- error message params
-
is
-
is
-
is
-
is
-
is
-
not
表达式为否事,抛出code异常- 参数:
exp- expcode- error codeobjects- error message params- 抛出:
ConcreteException
-
not
-
not
-
not
-
not
-
not
-
isNull
当对象o为null是,抛出code异常- 参数:
o- test objectcode- error codeobjects- error message params- 返回:
- non null
- 抛出:
ConcreteException
-
isNull
-
isNull
-
isNull
-
isNull
-
isNull
-
isNull
-
isNull
-
isNull
-
notNull
当对象o不为null时,抛出code异常- 参数:
o- objectcode- error codeobjects- error message params- 抛出:
ConcreteException
-
notNull
-
notNull
-