public final class Args extends Object
| Constructor and Description |
|---|
Args() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkNotNull(Object value)
Validates that an argument is not null.
|
static void |
checkNotNull(Object value,
String message,
Object... args)
Validates that an argument is not null.
|
static void |
checkNull(Object value)
Validates that an argument is null.
|
static void |
checkNull(Object value,
String message,
Object... args)
Validates that an argument is null.
|
static void |
checkPositive(int number)
Validates that an argument is positive.
|
static void |
checkPositive(int number,
String message,
Object... args)
Validates that an argument is positive.
|
public static void checkNull(Object value)
value - The value to check.public static void checkNull(Object value, String message, Object... args)
value - The value to check.message - An exception message.args - Exception message arguments.public static void checkNotNull(Object value)
value - The value to check.public static void checkNotNull(Object value, String message, Object... args)
value - The value to check.message - An exception message.args - Exception message arguments.public static void checkPositive(int number)
value - The value to check.Copyright © 2013-2014. All Rights Reserved.