- All Implemented Interfaces:
Key is the abstract base class for all objects representing keys
on the keyboard.
Key objects have a formal string representation, called the
'name' of the key, available via the
Key objects, via the
format() method, provide a
version of their formal string representation translated by platform and
locale, suitable for display to a user.
Key objects are immutable. Clients are not permitted to extend
- This class is not intended to be subclassed by clients.
Field SummaryModifier and TypeFieldDescription
protected final intDeprecated.The key from which this key was constructed.
keyprotected final int keyDeprecated.The key from which this key was constructed. This value is defined by
compareTopublic final int compareTo
equalspublic final boolean equals
hashCodepublic final int hashCode()Deprecated.
toStringpublic final String toString()Deprecated.Returns the formal string representation for this key.