@Test public void createInstanceWithNoDescription() { String regex = "\\s*KeyInfo\\(\\s*38,\\s*64\\)\\s*"; KeyInfo keyInfo = new KeyInfo(38, 64, null); assertTrue(keyInfo.toString().matches(regex)); keyInfo = new KeyInfo(38, 64, " "); assertTrue(keyInfo.toString().matches(regex)); }
@Override public String toString() { return desc; }
KeyInfo { @Override public String toString() { return desc; } }
KeyInfo { @Override public String toString() { return desc; } KeyInfo(int keyCode, int modifiers, String desc);  KeyInfo(KeyInfo keyInfo); }
KeyInfo { @Override public String toString() { return desc; } KeyInfo(int keyCode, int modifiers, String desc);  KeyInfo(KeyInfo keyInfo); int getKeyCode(); int getModifiers(); @Override String toString(); boolean matchesEvent(KeyEvent e); @Override boolean equals(Object obj); @Override int hashCode(); }
KeyInfo { @Override public String toString() { return desc; } KeyInfo(int keyCode, int modifiers, String desc);  KeyInfo(KeyInfo keyInfo); int getKeyCode(); int getModifiers(); @Override String toString(); boolean matchesEvent(KeyEvent e); @Override boolean equals(Object obj); @Override int hashCode();  }