T - The type of the definable object.public static class ByteBuddy.Definable.Defined<T> extends Object implements ByteBuddy.Definable<T>
ByteBuddy.Definable for a given value.ByteBuddy.Definable.Defined<T>, ByteBuddy.Definable.Undefined<T>| Constructor and Description |
|---|
Defined(T value)
Creates a new defined instance for the given value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
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.
|
String |
toString() |
public Defined(T value)
value - The defined value.public T resolve(T defaultValue)
ByteBuddy.Definableresolve in interface ByteBuddy.Definable<T>defaultValue - The default value that is returned for an ByteBuddy.Definable.Undefined
definable.public boolean isDefined()
ByteBuddy.DefinableisDefined in interface ByteBuddy.Definable<T>true if this value is defined.Copyright © 2014–2015. All rights reserved.