T
- Type of itempublic static final class Opt.Single<T> extends Object implements Opt<T>
The class is immutable and thread-safe.
Opt.Empty<T>, Opt.Single<T>
Modifier and Type | Method and Description |
---|---|
T |
get()
Returns the contained instance.
|
boolean |
has()
Returns true if contains instance.
|
Copyright © 2015–2018 Take. All rights reserved.