1   package com.atlassian.webtest.ui.keys;
2   
3   /**
4    * <p>
5    * A {@link Key} instance that has a corresponding 16-bit
6    * char representation in Java (e.g. 'a', 'b', 'c', '1', '2','3' etc).
7    *
8    * <p>
9    * NOTE: as this interface is based on a single 16-bit Java char, it only supports characters from
10   * the Basic Multilingual Plane (BMP) and <b>NOT</b> the <i>supplementary characters<i> as explained
11   * in the {@link Character} class documentation.
12   *
13   */
14  public interface CharacterKey extends Key
15  {
16      /**
17       * String representation of the character entered by this key
18       *
19       * @return string character representation
20       */
21      String string();
22  
23      /**
24       * Char (a code unit) representation of the character entered by this key 
25       *
26       * @return char character representation
27       */
28      char codeUnit();
29  }