org.bson.util
Class Assertions
java.lang.Object
org.bson.util.Assertions
public class Assertions
- extends Object
Design by contract assertions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
notNull
public static <T> T notNull(String name,
T notNull)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
isTrue
public static void isTrue(String name,
boolean check)
throws IllegalArgumentException
- Throws:
IllegalArgumentException