public final class Code extends Object implements Serializable
| Constructor and Description |
|---|
Code(String codeSpace,
String code)
Creates a Code from the specified codeSpace and code.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCode()
Returns the code of this Code.
|
String |
getCodeSpace()
Returns the codespace of this Code.
|
int |
hashCode() |
static Code |
parse(String codeSpaceAndCode)
Returns the Code as parsed from the specified String.
|
String |
toString()
Returns the Code as a codespace/code string.
|
public Code(String codeSpace, String code)
codeSpace - the codespace of the code (e.g. 'epsg').code - the code of the Code.IllegalArgumentException - if the specified codeSpace or code is null or empty.public String getCodeSpace()
public String getCode()
public static Code parse(String codeSpaceAndCode)
codeSpaceAndCode - the codespace/code pair as a String to parse.IllegalArgumentException - if
the specified string is null
does not contain a colon
does not contain characters to the left or right of the colon.public String toString()