T - the type of the object that is being wrapped.public class Wrapper<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Returns the
object. |
Optional<T> |
getOptional()
|
T |
getOrFail()
Returns the
object only if it is not null, otherwise an IllegalStateException will be thrown. |
void |
set(T object)
Set the
object. |
public Wrapper()
public Wrapper(T object)
public T getOrFail()
object only if it is not null, otherwise an IllegalStateException will be thrown.object.IllegalStateException - if the object is null.Copyright © 2017 Saxonia Systems AG. All rights reserved.