public interface Value
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Value.ValueProvider
A provider that creates a
Value instance from an object |
| Modifier and Type | Method and Description |
|---|---|
Object |
get()
Returns the real value without conversion.
|
<T> T |
get(Class<T> clazz)
Converts
get() to specified class |
<T> T |
get(TypeSupplier<T> typeSupplier)
Converts
get() to specified class |
boolean |
isInstanceOf(Class<?> typeClass)
A wrapper of
Class.isInstance(Object) to check the value instance within the Value |
static Value |
of(Object value)
Creates a new
Value instance |
<T> T get(Class<T> clazz)
get() to specified classT - the new instance typeclazz - the new classNullPointerException - when the class is nullUnsupportedOperationException - when the type is unsupportedValueReader<T> T get(TypeSupplier<T> typeSupplier)
get() to specified classT - the new instance typetypeSupplier - the type supplierNullPointerException - when the class is nullUnsupportedOperationException - when the type is unsupportedValueReaderboolean isInstanceOf(Class<?> typeClass)
Class.isInstance(Object) to check the value instance within the ValuetypeClass - the typeClass.isInstance(Object)NullPointerException - when typeClass is nullCopyright © 2017–2019 Eclipse Foundation. All rights reserved.