Constructor and Description |
---|
Value()
Constructor.
|
Value(T t)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
T |
get()
Returns the value.
|
static Type |
getParameterType(Method m,
int i)
Returns the generic parameter type of the Value parameter at the specified position.
|
static Type |
getParameterType(Type t)
Returns the generic parameter type of the Value type.
|
boolean |
isSet()
Returns
|
static boolean |
isType(Type t)
Convenience method for checking if the specified type is this class.
|
Value<T> |
listener(ValueListener<T> listener)
Adds a listener for this value.
|
Value<T> |
set(T t)
Sets the value.
|
public Value()
public static Type getParameterType(Method m, int i)
Class<?> t = Value.
m
- The method containing the parameter.i
- The index of the parameter.public static Type getParameterType(Type t)
t
- The type to find the parameter type of.public static boolean isType(Type t)
t
- The type to check.public Value<T> listener(ValueListener<T> listener)
listener
- The new listener for this value.public Value<T> set(T t)
t
- The new value.public boolean isSet()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.