@Deprecated public final class TypedSymbol<K> extends Object implements Serializable
A symbol associated with a particular type. Conceptually, each type can have a collection of symbols associated with it; that association is represented represented by this class.
Symbol
,
Serialized FormModifier and Type | Method and Description |
---|---|
String |
getName()
Deprecated.
Get the name for a symbol.
|
Symbol |
getRawSymbol()
Deprecated.
Get the symbol.
|
Class<K> |
getType()
Deprecated.
Get the type for a typed symbol.
|
static <T> TypedSymbol<T> |
of(Class<T> type,
String name)
Deprecated.
Get a unique symbol for name and type.
|
static <T> TypedSymbol<T> |
of(Class<T> type,
Symbol sym)
Deprecated.
|
String |
toString()
Deprecated.
|
SymbolValue<K> |
withValue(K val)
Deprecated.
Create a value paired with this symbol.
|
public static <T> TypedSymbol<T> of(Class<T> type, String name)
Get a unique symbol for name and type.
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()
Get the name for a symbol.
public Class<K> getType()
Get the type for a typed symbol.
public Symbol getRawSymbol()
Get the symbol.
public SymbolValue<K> withValue(K val)
Create a value paired with this symbol.
val
- The value.