ch.bind.philib.validation
public abstract class Validation extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Validation() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isFalse(boolean value) |
static boolean |
isFalse(boolean value,
String message) |
static boolean |
isTrue(boolean value) |
static boolean |
isTrue(boolean value,
String message) |
static <T> T[] |
noNullValues(T[] values) |
static <T> T[] |
noNullValues(T[] values,
String message) |
static int |
notNegative(int value) |
static int |
notNegative(int value,
String message) |
static long |
notNegative(long value) |
static long |
notNegative(long value,
String message) |
static <T> T |
notNull(T obj) |
static <T> T |
notNull(T obj,
String message) |
static <T extends CharSequence> |
notNullOrEmpty(T value) |
static <T extends Collection<?>> |
notNullOrEmpty(T value) |
static <T extends Map<?,?>> |
notNullOrEmpty(T value) |
static <T> T[] |
notNullOrEmpty(T[] values) |
static <T> T[] |
notNullOrEmpty(T[] values,
String message) |
static <T extends CharSequence> |
notNullOrEmpty(T value,
String message) |
static <T extends Collection<?>> |
notNullOrEmpty(T value,
String message) |
static <T extends Map<?,?>> |
notNullOrEmpty(T value,
String message) |
public static int notNegative(int value)
public static int notNegative(int value,
String message)
public static long notNegative(long value)
public static long notNegative(long value,
String message)
public static <T> T notNull(T obj)
public static <T> T notNull(T obj,
String message)
public static boolean isTrue(boolean value)
public static boolean isTrue(boolean value,
String message)
public static boolean isFalse(boolean value)
public static boolean isFalse(boolean value,
String message)
public static <T extends CharSequence> T notNullOrEmpty(T value)
public static <T extends CharSequence> T notNullOrEmpty(T value, String message)
public static <T extends Collection<?>> T notNullOrEmpty(T value)
public static <T extends Collection<?>> T notNullOrEmpty(T value, String message)
public static <T extends Map<?,?>> T notNullOrEmpty(T value)
public static <T> T[] notNullOrEmpty(T[] values)
public static <T> T[] notNullOrEmpty(T[] values,
String message)
public static <T> T[] noNullValues(T[] values)
public static <T> T[] noNullValues(T[] values,
String message)
Copyright © 2014. All Rights Reserved.