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