public final class Symbol extends Object implements Named, Comparable<Symbol>, Serializable
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Symbol right) |
boolean |
equals(Object obj) |
String |
getName()
The name of this named thing, not including any prefix.
|
String |
getPrefix()
The prefix, (also called namespace), which may be empty.
|
int |
hashCode() |
static Symbol |
newSymbol(String name)
Equivalent to
newSymbol("", name). |
static Symbol |
newSymbol(String prefix,
String name)
Provide a Symbol with the given prefix and name.
|
String |
toString() |
public final String getPrefix()
public final String getName()
public static Symbol newSymbol(String prefix, String name)
prefix - An empty String or a non-empty String obeying the
restrictions specified by edn. Never null.name - A non-empty string obeying the restrictions specified by edn.
Never null.public static Symbol newSymbol(String name)
newSymbol("", name).name - A non-empty string obeying the restrictions specified by edn.
Never null.public int compareTo(Symbol right)
compareTo in interface Comparable<Symbol>Copyright © 2019. All rights reserved.