T
- Type of itempublic interface Opt<T>
All implementations of this interface must be immutable and thread-safe.
Modifier and Type | Interface and Description |
---|---|
static class |
Opt.Empty<T>
Empty instance.
|
static class |
Opt.Single<T>
Holder for a single element only.
|
Modifier and Type | Method and Description |
---|---|
T |
get()
Returns the contained instance.
|
boolean |
has()
Returns true if contains instance.
|
T get()
boolean has()
Copyright © 2015–2018 Take. All rights reserved.