com.atlassian.util.concurrent
Class Assertions

java.lang.Object
  extended by com.atlassian.util.concurrent.Assertions

public class Assertions
extends java.lang.Object

Design by contract assertions.


Method Summary
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
clone, equals, finalize, 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


Copyright © 2012 Atlassian. All Rights Reserved.