|
|||||||||
| Home >> All >> plugins >> Messenger >> [ entity overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
plugins.Messenger.entity
Class Smiley

java.lang.Objectplugins.Messenger.entity.Smiley
- public class Smiley
- extends java.lang.Object
| Field Summary | |
private javax.swing.ImageIcon |
icon
|
private java.lang.String |
mnemonic
|
private java.util.List |
mnemonicsList
|
| Constructor Summary | |
Smiley()
Creates a new instance of Smiley |
|
| Method Summary | |
void |
addMnemonic(java.lang.String mnemonic)
|
javax.swing.ImageIcon |
getIcon()
Getter for property icon. |
java.lang.String |
getMnemonic()
Getter for property mnemonic. |
java.util.List |
getMnemonicsList()
Getter for property mnemonicsList. |
int |
hashCode()
Get a value that represents this Object, as uniquely as possible within the confines of an int. |
void |
setIcon(javax.swing.ImageIcon icon)
Setter for property icon. |
void |
setMnemonic(java.lang.String mnemonic)
Setter for property mnemonic. |
void |
setMnemonicsList(java.util.List mnemonicsList)
Setter for property mnemonicsList. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
mnemonic
private java.lang.String mnemonic
mnemonicsList
private java.util.List mnemonicsList
icon
private javax.swing.ImageIcon icon
| Constructor Detail |
Smiley
public Smiley()
- Creates a new instance of Smiley
| Method Detail |
getMnemonic
public java.lang.String getMnemonic()
- Getter for property mnemonic.
setMnemonic
public void setMnemonic(java.lang.String mnemonic)
- Setter for property mnemonic.
getMnemonicsList
public java.util.List getMnemonicsList()
- Getter for property mnemonicsList.
setMnemonicsList
public void setMnemonicsList(java.util.List mnemonicsList)
- Setter for property mnemonicsList.
addMnemonic
public void addMnemonic(java.lang.String mnemonic)
getIcon
public javax.swing.ImageIcon getIcon()
- Getter for property icon.
setIcon
public void setIcon(javax.swing.ImageIcon icon)
- Setter for property icon.
hashCode
public int hashCode()
- Description copied from class:
java.lang.Object - Get a value that represents this Object, as uniquely as
possible within the confines of an int.
There are some requirements on this method which subclasses must follow:
- Semantic equality implies identical hashcodes. In other
words, if
a.equals(b)is true, thena.hashCode() == b.hashCode()must be as well. However, the reverse is not necessarily true, and two objects may have the same hashcode without being equal. - It must be consistent. Whichever value o.hashCode() returns on the first invocation must be the value returned on all later invocations as long as the object exists. Notice, however, that the result of hashCode may change between separate executions of a Virtual Machine, because it is not invoked on the same object.
Notice that since
hashCodeis used in java.util.Hashtable and other hashing classes, a poor implementation will degrade the performance of hashing (so don't blindly implement it as returning a constant!). Also, if calculating the hash is time-consuming, a class may consider caching the results.The default implementation returns
System.identityHashCode(this) - Semantic equality implies identical hashcodes. In other
words, if
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> plugins >> Messenger >> [ entity overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
plugins.Messenger.entity.Smiley