Skip navigation links
org.apache.myfaces.trinidad.util
Class Args
java.lang.Object
org.apache.myfaces.trinidad.util.Args
-
public final class Args
- extends Object
Argument processing utilities.
| Method Summary |
static
|
notNull(T arg, String argName)
Ensures that the specified argument is not null. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
notNull
public static <T> T notNull(T arg,
String argName)
- Ensures that the specified argument is not null. If the value is null, an IllegalArgumentException is thrown.
-
- Parameters:
arg - the value to test
argName - the name of the argument (for logging purposes)
- Returns:
- the argument value, if not null
Skip navigation links
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.