|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.beanutils2.Argument<T>
T - the type of the argument.public final class Argument<T>
An argument represents a value of some type that can be passed to a method or constructor.
| Method Summary | ||
|---|---|---|
static
|
argument(A value)
Factory method for arguments. |
|
static
|
argument(Class<T> type,
V value)
Creates a new argument of the given type with the given value. |
|
Class<T> |
getType()
|
|
T |
getValue()
|
|
static
|
nullArgument(Class<A> type)
Creates a new null argument of the given type. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <A> Argument<A> argument(A value)
value - the value to be wrapped by the new argument object. Must not
be null! If you want to create a null argument use
nullArgument(Class) instead.
value.getClass()
NullPointerException - if value is nullpublic static <A> Argument<A> nullArgument(Class<A> type)
type - the type of the new argument
value == null.
NullPointerException - if type is null.
public static <T,V extends T> Argument<T> argument(Class<T> type,
V value)
type - the type of the new argument. Must not be null!value - the value of the new argument.
NullPointerException - if type is nullpublic Class<T> getType()
public T getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||