public class Validate extends Object
Constructor and Description |
---|
Validate() |
Modifier and Type | Method and Description |
---|---|
static void |
argumentCheck(boolean argumentCondition,
String message) |
static void |
argumentIsNotNull(Object argument) |
static void |
argumentIsNotNull(Object argument,
String message)
Checks if given argument is not null.
|
static void |
argumentsAreNotNull(Object... arguments) |
static void |
argumentShouldBeNull(Object argument,
String message)
Deprecated.
every time when an argument should be null a fairy dies ...
|
static void |
conditionFulfilled(boolean condition,
String message) |
public static void argumentIsNotNull(Object argument, String message)
IllegalArgumentException
public static void argumentIsNotNull(Object argument)
IllegalArgumentException
public static void argumentsAreNotNull(Object... arguments)
IllegalArgumentException
public static void argumentShouldBeNull(Object argument, String message)
public static void argumentCheck(boolean argumentCondition, String message)
IllegalArgumentException
public static void conditionFulfilled(boolean condition, String message)
IllegalStateException
Copyright © 2014. All rights reserved.