se.lth.cs.nlp.nlputils.core
Class Aux

java.lang.Object
  extended by se.lth.cs.nlp.nlputils.core.Aux

public class Aux
extends Object

Contains a set of auxiliary methods used by all libraries.

Author:
Richard Johansson (richard@cs.lth.se)

Method Summary
static void check(boolean condition, String message)
          Asserts that condition holds, otherwise throws a RuntimeException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

check

public static void check(boolean condition,
                         String message)
Asserts that condition holds, otherwise throws a RuntimeException.

Parameters:
condition - the condition to check.
message - a message for the exception.