|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.msc.value.Values
public final class Values
Value utility methods.
| Field Summary | |
|---|---|
static List<Value<?>> |
EMPTY_LIST
The empty value list. |
static List<? extends Value<Class<?>>> |
EMPTY_TYPE_LIST
The empty value type list. |
| Method Summary | ||
|---|---|---|
static
|
asSuperclass(Value<? extends T> value)
Safely re-cast a value as its superclass. |
|
static
|
cached(Value<T> value)
Get a cached value for some opaque value. |
|
static
|
emptyList()
The empty value list. |
|
static
|
emptyListValue()
A value which yields the empty list. |
|
static Object[] |
getValues(Iterable<? extends Value<?>> i)
Get an object array from the result of an iterable series of values. |
|
static
|
getValues(Iterable<? extends Value<? extends T>> i,
Class<T> clazz)
Get a typed object array from the result of an iterable series of values. |
|
static
|
getValues(Iterable<? extends Value<? extends T>> i,
T[] array)
Get a typed object array from the result of an iterable series of values. |
|
static
|
immediateValue(T value)
Get an immediate value. |
|
static
|
immediateValues(List<T> values)
|
|
static
|
immediateValues(T... values)
|
|
static ThreadLocalValue<Object> |
injectedValue()
The special value representing the value of an injection operation. |
|
static
|
nullValue()
Get the null value. |
|
static ThreadLocalValue<Object> |
thisValue()
The special value representing this (the object being invoked upon). |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final List<Value<?>> EMPTY_LIST
public static final List<? extends Value<Class<?>>> EMPTY_TYPE_LIST
| Method Detail |
|---|
public static Object[] getValues(Iterable<? extends Value<?>> i)
i - the iterable series
public static <T> T[] getValues(Iterable<? extends Value<? extends T>> i,
Class<T> clazz)
i - the iterable seriesclazz - the resultant array type
public static <T> T[] getValues(Iterable<? extends Value<? extends T>> i,
T[] array)
i - the iterable seriesarray - the array to populate
public static <T> Value<T> nullValue()
T - the value type
nullpublic static <T> Value<T> cached(Value<T> value)
T - the value typevalue - the value to wrap
public static <T> List<Value<? extends T>> emptyList()
T - the value type
public static <T> Value<T> immediateValue(T value)
T - the value typevalue - the value to return
public static <T> Value<List<T>> emptyListValue()
T - the list member type
public static <T> List<Value<? extends T>> immediateValues(List<T> values)
public static <T> List<Value<? extends T>> immediateValues(T... values)
public static <T> Value<T> asSuperclass(Value<? extends T> value)
T - the value typevalue - the value to re-cast
public static ThreadLocalValue<Object> thisValue()
this (the object being invoked upon).
thispublic static ThreadLocalValue<Object> injectedValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||