T - The type of the definable object.protected static interface ByteBuddy.Definable<T>
ByteBuddy.Definable.Defined when a value is provided
or ByteBuddy.Definable.Undefined if a value is not provided. A defined definable will
return its defined value on request while an undefined definable will return the provided default.| Modifier and Type | Interface and Description |
|---|---|
static class |
ByteBuddy.Definable.Defined<T>
A representation of a defined
ByteBuddy.Definable for a given value. |
static class |
ByteBuddy.Definable.Undefined<T>
A representation of an undefined
ByteBuddy.Definable. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDefined()
Checks if this value is explicitly defined.
|
T |
resolve(T defaultValue)
Returns the value of this instance or the provided default value for an undefined definable.
|
T resolve(T defaultValue)
defaultValue - The default value that is returned for an ByteBuddy.Definable.Undefined
definable.boolean isDefined()
true if this value is defined.Copyright © 2014–2015. All rights reserved.