public final class TypedSymbol<K> extends Object implements Serializable
Symbol
,
Serialized FormModifier and Type | Method and Description |
---|---|
String |
getName()
Get the name for a symbol.
|
Symbol |
getRawSymbol()
Get the symbol.
|
Class<K> |
getType()
Get the type for a typed symbol.
|
static <T> TypedSymbol<T> |
of(Class<T> type,
String name)
Get a unique symbol for name and type.
|
static <T> TypedSymbol<T> |
of(Class<T> type,
Symbol sym) |
String |
toString() |
SymbolValue<K> |
withValue(K val)
Create a value paired with this symbol.
|
public static <T> TypedSymbol<T> of(Class<T> type, String name)
type
- The type for the type-symbol pair.name
- The name for the type-symbol pair.public static <T> TypedSymbol<T> of(Class<T> type, Symbol sym)
public String getName()
public Class<K> getType()
public Symbol getRawSymbol()
public SymbolValue<K> withValue(K val)
val
- The value.