Package org.jboss.msc.value
Class Values
- java.lang.Object
-
- org.jboss.msc.value.Values
-
@Deprecated public final class Values extends Object
Deprecated.UseServiceBuilder.requires(org.jboss.msc.service.ServiceName)
method instead. This class will be removed in a future release.Value utility methods.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description static List<Value<?>>
EMPTY_LIST
Deprecated.The empty value list.static List<? extends Value<Class<?>>>
EMPTY_TYPE_LIST
Deprecated.The empty value type list.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> Value<T>
asSuperclass(Value<? extends T> value)
Deprecated.Safely re-cast a value as its superclass.static <T> Value<T>
cached(Value<T> value)
Deprecated.Get a cached value for some opaque value.static <T> List<Value<? extends T>>
emptyList()
Deprecated.The empty value list.static <T> Value<List<T>>
emptyListValue()
Deprecated.A value which yields the empty list.static Object[]
getValues(Iterable<? extends Value<?>> i)
Deprecated.Get an object array from the result of an iterable series of values.static <T> T[]
getValues(Iterable<? extends Value<? extends T>> i, Class<T> clazz)
Deprecated.Get a typed object array from the result of an iterable series of values.static <T> T[]
getValues(Iterable<? extends Value<? extends T>> i, T[] array)
Deprecated.Get a typed object array from the result of an iterable series of values.static <T> Value<T>
immediateValue(T value)
Deprecated.Get an immediate value.static <T> List<Value<? extends T>>
immediateValues(List<T> values)
Deprecated.static <T> List<Value<? extends T>>
immediateValues(T... values)
Deprecated.static ThreadLocalValue<Object>
injectedValue()
Deprecated.The special value representing the value of an injection operation.static <T> Value<T>
nullValue()
Deprecated.Get the null value.static ThreadLocalValue<Object>
thisValue()
Deprecated.The special value representingthis
(the object being invoked upon).
-
-
-
Method Detail
-
getValues
public static Object[] getValues(Iterable<? extends Value<?>> i)
Deprecated.Get an object array from the result of an iterable series of values.- Parameters:
i
- the iterable series- Returns:
- the values array
-
getValues
public static <T> T[] getValues(Iterable<? extends Value<? extends T>> i, Class<T> clazz)
Deprecated.Get a typed object array from the result of an iterable series of values.- Parameters:
i
- the iterable seriesclazz
- the resultant array type- Returns:
- the values array
-
getValues
public static <T> T[] getValues(Iterable<? extends Value<? extends T>> i, T[] array)
Deprecated.Get a typed object array from the result of an iterable series of values.- Parameters:
i
- the iterable seriesarray
- the array to populate- Returns:
- the values array
-
nullValue
public static <T> Value<T> nullValue()
Deprecated.Get the null value.- Type Parameters:
T
- the value type- Returns:
- a value which always yields
null
-
cached
public static <T> Value<T> cached(Value<T> value)
Deprecated.Get a cached value for some opaque value. If the value is already cached, it is returned as-is.- Type Parameters:
T
- the value type- Parameters:
value
- the value to wrap- Returns:
- a cached value
-
emptyList
public static <T> List<Value<? extends T>> emptyList()
Deprecated.The empty value list.- Type Parameters:
T
- the value type- Returns:
- the empty value list
-
immediateValue
public static <T> Value<T> immediateValue(T value)
Deprecated.Get an immediate value.- Type Parameters:
T
- the value type- Parameters:
value
- the value to return- Returns:
- the immediate value
-
emptyListValue
public static <T> Value<List<T>> emptyListValue()
Deprecated.A value which yields the empty list.- Type Parameters:
T
- the list member type- Returns:
- the empty list value
-
immediateValues
public static <T> List<Value<? extends T>> immediateValues(List<T> values)
Deprecated.
-
immediateValues
public static <T> List<Value<? extends T>> immediateValues(T... values)
Deprecated.
-
asSuperclass
public static <T> Value<T> asSuperclass(Value<? extends T> value)
Deprecated.Safely re-cast a value as its superclass.- Type Parameters:
T
- the value type- Parameters:
value
- the value to re-cast- Returns:
- the value
-
thisValue
public static ThreadLocalValue<Object> thisValue()
Deprecated.The special value representingthis
(the object being invoked upon).- Returns:
- the value for
this
-
injectedValue
public static ThreadLocalValue<Object> injectedValue()
Deprecated.The special value representing the value of an injection operation.- Returns:
- the target value
-
-