protected static class XAbstractProcessor.Assert<T> extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
T |
doNoThing()
If the assert fail, throw an
AssertException. |
T |
message(String msg)
If the assert fail, throw an
AssertException with given message. |
T |
todo(Runnable task)
If the assert fail, do the task and then throw an
AssertException. |
public Assert(boolean assertion)
public Assert(T value, boolean assertion)
public T message(String msg)
AssertException with given message. Or return the success value.msg - the fail messagepublic T todo(Runnable task)
AssertException. Or return the success value.task - the task to do when failpublic T doNoThing()
AssertException. Or return the success value.Copyright © 2018. All rights reserved.