com.atlassian.webtest.ui.keys
Class DefaultCharacterKey

java.lang.Object
  extended by com.atlassian.webtest.ui.keys.DefaultCharacterKey
All Implemented Interfaces:
CharacterKey, Key

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 Summary
DefaultCharacterKey(char codeUnit)
           
DefaultCharacterKey(String string)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultCharacterKey

public DefaultCharacterKey(String string)

DefaultCharacterKey

public DefaultCharacterKey(char codeUnit)
Method Detail

string

public String string()
Description copied from interface: CharacterKey
String representation of the character entered by this key

Specified by:
string in interface CharacterKey
Returns:
string character representation

codeUnit

public char codeUnit()
Description copied from interface: CharacterKey
Char (a code unit) representation of the character entered by this key

Specified by:
codeUnit in interface CharacterKey
Returns:
char character representation

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Atlassian. All rights reserved.