public final class NOnceValueImpl<T> extends Object implements NOnceValue<T>
| Modifier and Type | Method and Description |
|---|---|
NElement |
describe() |
T |
get() |
boolean |
isError() |
boolean |
isEvaluated() |
boolean |
isValid() |
T |
orElse(T value) |
T |
orElseSet(Supplier<T> value) |
void |
reload() |
boolean |
trySet(T value) |
boolean |
trySupply(Supplier<T> supplier) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofSupplierpublic void reload()
public T get()
public boolean trySupply(Supplier<T> supplier)
trySupply in interface NOnceValue<T>public T orElse(T value)
orElse in interface NOnceValue<T>public boolean trySet(T value)
trySet in interface NOnceValue<T>public boolean isValid()
isValid in interface NOnceValue<T>public boolean isError()
isError in interface NOnceValue<T>public boolean isEvaluated()
isEvaluated in interface NOnceValue<T>public NElement describe()
describe in interface NDescribableCopyright © 2026 vpc open source initiative. All rights reserved.