org.bson.util
Class Assertions

java.lang.Object
  extended by org.bson.util.Assertions

public class Assertions
extends Object

Design by contract assertions.


Method Summary
static void isTrue(String name, boolean check)
           
static
<T> T
notNull(String name, T notNull)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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