Assertions
Date: 2015-03-03

org.bson.util

## Class Assertions

- java.lang.Object
- - org.bson.util.Assertions

-     public class Assertions
      extends java.lang.Object

  Design by contract assertions.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `isTrue(java.lang.String name, boolean check)`
    `static <T> T` | `notNull(java.lang.String name, T notNull)`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### notNull

          public static <T> T notNull(java.lang.String name,
                      T notNull)
                           throws java.lang.IllegalArgumentException

      Throws:
        `java.lang.IllegalArgumentException`

    - #### isTrue

          public static void isTrue(java.lang.String name,
                    boolean check)
                             throws java.lang.IllegalArgumentException

      Throws:
        `java.lang.IllegalArgumentException`