org.apache.wicket.util.lang
Class Args
java.lang.Object
org.apache.wicket.util.lang.Args
public class Args
- extends Object
Constructor Summary |
Args()
|
Method Summary |
static void |
notEmpty(String argument,
String name)
Checks argument is not empty (not null and has a non-whitespace character) |
static void |
notNull(Object argument,
String name)
Checks argument is not null |
static
|
withinRange(T min,
T max,
T value,
String name)
Checks if argument is within a range |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Args
public Args()
notNull
public static void notNull(Object argument,
String name)
- Checks argument is not null
- Parameters:
argument
- name
-
- Throws:
IllegalargumentException
notEmpty
public static void notEmpty(String argument,
String name)
- Checks argument is not empty (not null and has a non-whitespace character)
- Parameters:
argument
- name
-
- Throws:
IllegalargumentException
withinRange
public static <T extends Comparable<T>> void withinRange(T min,
T max,
T value,
String name)
- Checks if argument is within a range
- Type Parameters:
T
- - Parameters:
min
- max
- value
- name
-
- Throws:
IllegalargumentException
Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.