ch.bind.philib.validation
Class Validation

java.lang.Object
  extended by ch.bind.philib.validation.Validation

public abstract class Validation
extends Object

TODO

Author:
Philipp Meinen

Constructor Summary
protected Validation()
           
 
Method Summary
static void isFalse(boolean value)
           
static void isFalse(boolean value, String message)
           
static void isTrue(boolean value)
           
static void isTrue(boolean value, String message)
           
static void notNegative(int value)
           
static void notNegative(int value, String message)
           
static void notNegative(long value)
           
static void notNegative(long value, String message)
           
static void notNull(Object obj)
           
static void notNull(Object obj, String message)
           
static void notNullOrEmpty(Collection<?> value)
           
static void notNullOrEmpty(Collection<?> value, String message)
           
static
<T> void
notNullOrEmpty(T[] value)
           
static
<T> void
notNullOrEmpty(T[] value, String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validation

protected Validation()
Method Detail

notNegative

public static void notNegative(int value)

notNegative

public static void notNegative(int value,
                               String message)

notNegative

public static void notNegative(long value)

notNegative

public static void notNegative(long value,
                               String message)

notNull

public static void notNull(Object obj)

notNull

public static void notNull(Object obj,
                           String message)

isTrue

public static void isTrue(boolean value)

isTrue

public static void isTrue(boolean value,
                          String message)

isFalse

public static void isFalse(boolean value)

isFalse

public static void isFalse(boolean value,
                           String message)

notNullOrEmpty

public static void notNullOrEmpty(Collection<?> value)

notNullOrEmpty

public static void notNullOrEmpty(Collection<?> value,
                                  String message)

notNullOrEmpty

public static <T> void notNullOrEmpty(T[] value)

notNullOrEmpty

public static <T> void notNullOrEmpty(T[] value,
                                      String message)


Copyright © 2013. All Rights Reserved.