public final class OptionalBox<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OptionalBox.Instance |
static class |
OptionalBox.Mu |
Modifier and Type | Method and Description |
---|---|
static <T> OptionalBox<T> |
create(Optional<T> value) |
static <T> Optional<T> |
unbox(OptionalBox.Mu<T> box) |
public static <T> Optional<T> unbox(OptionalBox.Mu<T> box)
public static <T> OptionalBox<T> create(Optional<T> value)