T - the generic type of the object stored in the valuepublic final class Const<T> extends Object implements Serializable
Represent an immutable value
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
T |
get()
Returns the object stored in this
Val |
int |
hashCode() |
static void |
main(String[] args) |
static <E> Const |
of(E t) |
static <E> Const |
of(Lang.Var<E> var) |
String |
toString() |
Lang.Val<T> |
toVal() |
Lang.Var<T> |
toVar() |
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.