public abstract class SymbolValue<T> extends Object
TypedSymbol
with a value of the same type.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
static Function<SymbolValue<?>,TypedSymbol<?>> |
extractSymbol() |
Symbol |
getRawSymbol()
Get the raw
Symbol from the symbol value. |
abstract TypedSymbol<T> |
getSymbol() |
abstract T |
getValue() |
int |
hashCode() |
static Predicate<SymbolValue<?>> |
hasSymbol(TypedSymbol<?> sym) |
static DoubleSymbolValue |
of(Symbol sym,
double val)
Create an unboxed symbol value.
|
static DoubleSymbolValue |
of(TypedSymbol<Double> sym,
double val)
Create an unboxed symbol value.
|
static <T> SymbolValue<T> |
of(TypedSymbol<T> sym,
T val)
Create a typed symbol value.
|
public static <T> SymbolValue<T> of(TypedSymbol<T> sym, T val)
T
- The type of the symbol.sym
- The symbol.val
- The value.public static DoubleSymbolValue of(TypedSymbol<Double> sym, double val)
sym
- The symbol.val
- The value.public static DoubleSymbolValue of(Symbol sym, double val)
sym
- The symbol.val
- The value.public abstract TypedSymbol<T> getSymbol()
public Symbol getRawSymbol()
Symbol
from the symbol value.Symbol
.public abstract T getValue()
public static Predicate<SymbolValue<?>> hasSymbol(TypedSymbol<?> sym)
public static Function<SymbolValue<?>,TypedSymbol<?>> extractSymbol()