public 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.
|
T get()
boolean has()
Copyright © 2015 Take. All rights reserved.