public class SelectableSymbol extends java.lang.Object implements java.lang.Comparable<SelectableSymbol>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
char |
symbolCode
The APRS symbol code for this symbol.
|
char |
symTableId
The APRS symbol table ID ('/' or '\') or overlay character (0-9 or A-Z) for this symbol.
|
Constructor and Description |
---|
SelectableSymbol(char symTableId,
char symbolCode)
Construct a SelectableSymbol for the specified APRS symTableId and symbolCode characters.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SelectableSymbol o)
Compares this object with the specified object for order.
|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
static SelectableSymbol[] |
getTypeCodes(boolean withLeadingNull)
Provide a list of all standard symbol combinations, with a null default.
|
int |
hashCode()
Returns a hash code value for the object.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
static SelectableSymbol |
valueOf(char symTableId,
char symbolCode)
Return a SelectableSymbol object corresponding to the specified pair of
characters.
|
public final char symTableId
public final char symbolCode
public SelectableSymbol(char symTableId, char symbolCode)
symTableId
- printable ASCII character for the symbol table ID or overlaysymbolCode
- printable ASCII character for the symbol codepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.hashCode()
,
Hashtable
public int hashCode()
java.util.Hashtable
.hashCode
in class java.lang.Object
equals(java.lang.Object)
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(SelectableSymbol o)
compareTo
in interface java.lang.Comparable<SelectableSymbol>
o
- the object to be compared.java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this object.public static SelectableSymbol valueOf(char symTableId, char symbolCode)
symTableId
- char symbol table identifiersymbolCode
- char code for the specific symbol within the specified tablepublic static SelectableSymbol[] getTypeCodes(boolean withLeadingNull)
withLeadingNull
- boolean true if a null leading entry should be in the returned array for "no symbol specified yet"