@Value.Immutable public abstract static class Maybe.Some<T> extends Maybe<T>
Maybe.None<T>, Maybe.Some<T>| Constructor and Description |
|---|
Some() |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
boolean |
hasSome() |
<R> Maybe<R> |
map(Function<T,R> mapping) |
protected abstract T |
value() |
getOrThrow, none, someCopyright © 2023. All rights reserved.