📄 asserter.java
字号:
package org.jpos.util;/** * @author Alejandro P. Revilla * @version $Revision: 1.1 $ $Date: 2000/11/07 01:04:37 $ */public class Asserter { public Asserter() { super(); } public Asserter check (Object obj) throws AssertFailedException { if (obj == null) throw new AssertFailedException(); return this; } public Asserter check (Object obj1, Object obj2) throws AssertFailedException { check(obj1).check(obj2); if (!obj1.equals(obj2)) throw new AssertFailedException(); return this; } public Asserter check (boolean b) throws AssertFailedException { if (!b) throw new AssertFailedException(); return this; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -