qflib 0.98.1

de.qfs.lib.option
Class KeyOption.Data

java.lang.Object
  |
  +--de.qfs.lib.option.KeyOption.Data
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Enclosing class:
KeyOption

public static class KeyOption.Data
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Struct that contains the data for the KeyOption.

See Also:
Serialized Form

Field Summary
 char keyChar
          The keyChar value.
 int keyCode
          The keyCode value.
 int modifiers
          The modifiers value.
 
Constructor Summary
KeyOption.Data(int keyCode, char keyChar, int modifiers)
          Create a new Data.
 
Method Summary
 java.lang.Object clone()
          Create a copy of the Data.
 boolean equals(java.lang.Object o)
          Test whether an Object is equal to the Data.
 int hashCode()
          Get the hash code for the Data.
 java.lang.String toString()
          Get a String representation for the data.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

keyCode

public int keyCode
The keyCode value.

keyChar

public char keyChar
The keyChar value.

modifiers

public int modifiers
The modifiers value.
Constructor Detail

KeyOption.Data

public KeyOption.Data(int keyCode,
                      char keyChar,
                      int modifiers)
Create a new Data.
Parameters:
keyCode - The initial keyCode value.
keyChar - The initial keyChar value.
modifiers - The initial modifiers value.
Method Detail

clone

public java.lang.Object clone()
Create a copy of the Data.
Overrides:
clone in class java.lang.Object
Returns:
The copy.

hashCode

public int hashCode()
Get the hash code for the Data.
Overrides:
hashCode in class java.lang.Object
Returns:
The hash code for the data.

equals

public boolean equals(java.lang.Object o)
Test whether an Object is equal to the Data.
Overrides:
equals in class java.lang.Object
Parameters:
o - The Object to test.
Returns:
True if the Object is of class Data and has the same values.

toString

public java.lang.String toString()
Get a String representation for the data.
Overrides:
toString in class java.lang.Object
Returns:
A String representation for the data.

qflib 0.98.1