T
- Type of wrapped instance@Beta @PublicAPI public class InstanceWrapper<T> extends Object
Note that usually instances actual are immutable (because of being parameter objects or enums). Some of them have associated builder classes.
Please note that this class is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
Modifier and Type | Method and Description |
---|---|
T |
get()
Get the actual wrapped instance.
|
Optional<ParameterBuilder<T>> |
getBuilder()
Get an associated builder for the given instance if exists.
|
String |
getDescription()
Represented instance description - from its description annotation.
|
String |
getName()
Represented instance name - from its Description annotation.
|
String |
getShortName()
Represented instance short name - from its Description annotation.
|
public T get()
Please note that instance might be immutable, in this case associated builder should be used.
public Optional<ParameterBuilder<T>> getBuilder()
public String getShortName()
public String getName()
public String getDescription()