public class DefaultCharacterKey extends Object implements CharacterKey
Character implementation of the Key interface.
This class represents all keys that have corresponding 16-bit char representation in Java.
NOTE: as this class is based on a single 16-bit Java char, it only supports characters from
the Basic Multilingual Plane (BMP) and NOT the supplementary characters as explained
in the Character class documentation.
| Constructor and Description |
|---|
DefaultCharacterKey(char codeUnit) |
DefaultCharacterKey(String string) |
| Modifier and Type | Method and Description |
|---|---|
char |
codeUnit()
Char (a code unit) representation of the character entered by this key
|
String |
string()
String representation of the character entered by this key
|
String |
toString() |
public DefaultCharacterKey(String string)
public DefaultCharacterKey(char codeUnit)
public String string()
CharacterKeystring in interface CharacterKeypublic char codeUnit()
CharacterKeycodeUnit in interface CharacterKeyCopyright © 2015 Atlassian. All rights reserved.