|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mudcraft.bukkit.socials.message.Message.Context
public class Message.Context
Contains contextual information used to render a message.
Constructor Summary | |
---|---|
Message.Context()
Constructs a new Message.Context instance. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Gets whether this object is equal to another object. |
boolean |
getBoolean(java.lang.String key)
Searches for the property with the specified key. |
boolean |
getBoolean(java.lang.String key,
boolean defaultValue)
Searches for the property with the specified key. |
double |
getByte(java.lang.String key)
Searches for the property with the specified key. |
double |
getByte(java.lang.String key,
byte defaultValue)
Searches for the property with the specified key. |
double |
getDouble(java.lang.String key)
Searches for the property with the specified key. |
double |
getDouble(java.lang.String key,
double defaultValue)
Searches for the property with the specified key. |
float |
getFloat(java.lang.String key)
Searches for the property with the specified key. |
float |
getFloat(java.lang.String key,
float defaultValue)
Searches for the property with the specified key. |
int |
getInt(java.lang.String key)
Searches for the property with the specified key. |
int |
getInt(java.lang.String key,
int defaultValue)
Searches for the property with the specified key. |
long |
getLong(java.lang.String key)
Searches for the property with the specified key. |
long |
getLong(java.lang.String key,
long defaultValue)
Searches for the property with the specified key. |
org.bukkit.entity.Player |
getPlayer(java.lang.String key)
Searches for the property with the specified key. |
short |
getShort(java.lang.String key)
Searches for the property with the specified key. |
short |
getShort(java.lang.String key,
short defaultValue)
Searches for the property with the specified key. |
SocialUser |
getSocialUser(java.lang.String key)
Searches for the property with the specified key. |
java.lang.String |
getString(java.lang.String key)
Searches for the property with the specified key. |
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue)
Searches for the property with the specified key. |
int |
hashCode()
Calculates a hashcode for this object. |
Message.Context |
setBoolean(java.lang.String key,
boolean value)
Associates the specified value with the specified key. |
Message.Context |
setByte(java.lang.String key,
byte value)
Associates the specified value with the specified key. |
Message.Context |
setDouble(java.lang.String key,
double value)
Associates the specified value with the specified key. |
Message.Context |
setFloat(java.lang.String key,
float value)
Associates the specified value with the specified key. |
Message.Context |
setInt(java.lang.String key,
int value)
Associates the specified value with the specified key. |
Message.Context |
setLong(java.lang.String key,
long value)
Associates the specified value with the specified key. |
Message.Context |
setPlayer(java.lang.String key,
org.bukkit.entity.Player player)
Associates the name of the specified player with the specified key. |
Message.Context |
setShort(java.lang.String key,
short value)
Associates the specified value with the specified key. |
Message.Context |
setSocialUser(java.lang.String key,
SocialUser user)
Associates the name of the specified social user with the specified key. |
Message.Context |
setString(java.lang.String key,
java.lang.String value)
Associates the specified value with the specified key. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Message.Context()
Message.Context
instance.
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to which this object is to be compared
true
if the specified object is equivalentObject.equals(Object)
public double getByte(java.lang.String key)
key
- the context key
public double getByte(java.lang.String key, byte defaultValue)
key
- the context keydefaultValue
- the default value
public boolean getBoolean(java.lang.String key)
key
- the context key
public boolean getBoolean(java.lang.String key, boolean defaultValue)
key
- the context keydefaultValue
- the default value
public double getDouble(java.lang.String key)
key
- the context key
public double getDouble(java.lang.String key, double defaultValue)
key
- the context keydefaultValue
- the default value
public float getFloat(java.lang.String key)
key
- the context key
public float getFloat(java.lang.String key, float defaultValue)
key
- the context keydefaultValue
- the default value
public int getInt(java.lang.String key)
key
- the context key
public int getInt(java.lang.String key, int defaultValue)
key
- the context keydefaultValue
- the default value
public long getLong(java.lang.String key)
key
- the context key
public long getLong(java.lang.String key, long defaultValue)
key
- the context keydefaultValue
- the default value
public org.bukkit.entity.Player getPlayer(java.lang.String key)
key
- the context key
Player
whose name equals the value in this
context associated with the specified key, or null
public short getShort(java.lang.String key)
key
- the context key
public short getShort(java.lang.String key, short defaultValue)
key
- the context keydefaultValue
- the default value
public SocialUser getSocialUser(java.lang.String key)
key
- the context key
SocialUser
whose name equals the value in this
context associated with the specified key, or null
public java.lang.String getString(java.lang.String key)
key
- the context key
public java.lang.String getString(java.lang.String key, java.lang.String defaultValue)
key
- the context keydefaultValue
- the default value
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public Message.Context setBoolean(java.lang.String key, boolean value)
key
- the context keyvalue
- the value to be assigned to the specified key
public Message.Context setByte(java.lang.String key, byte value)
key
- the context keyvalue
- the value to be assigned to the specified key
public Message.Context setDouble(java.lang.String key, double value)
key
- the context keyvalue
- the value to be assigned to the specified key
public Message.Context setFloat(java.lang.String key, float value)
key
- the context keyvalue
- the value to be assigned to the specified key
public Message.Context setInt(java.lang.String key, int value)
key
- the context keyvalue
- the value to be assigned to the specified key
public Message.Context setLong(java.lang.String key, long value)
key
- the context keyvalue
- the value to be assigned to the specified key
public Message.Context setPlayer(java.lang.String key, org.bukkit.entity.Player player)
key
- the context keyplayer
- the player whose name is to be assigned to the
specified key
public Message.Context setShort(java.lang.String key, short value)
key
- the context keyvalue
- the value to be assigned to the specified key
public Message.Context setSocialUser(java.lang.String key, SocialUser user)
key
- the context keyuser
- the social user whose name is to be assigned to the
specified key
public Message.Context setString(java.lang.String key, java.lang.String value)
key
- the context keyvalue
- the value to be assigned to the specified key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |