|
|||||||||
Home >> All >> marauroa >> [ game overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
marauroa.game
Class Attributes

java.lang.Objectmarauroa.game.Attributes
- All Implemented Interfaces:
- marauroa.net.Serializable
- public class Attributes
- extends java.lang.Object
- implements marauroa.net.Serializable
- extends java.lang.Object
This class host a list of Attributes stored as a pair String=String
Nested Class Summary | |
static class |
Attributes.AttributeNotFoundException
|
Field Summary | |
private java.util.Map |
content
|
Constructor Summary | |
Attributes()
Constructor |
Method Summary | |
boolean |
equals(java.lang.Object attr)
This method returns true of both object are equal. |
java.lang.String |
get(java.lang.String attribute)
This methods return the value of an attribute |
boolean |
has(java.lang.String attribute)
This method returns true if the attribute exists |
void |
put(java.lang.String attribute,
int value)
This method set the value of an attribute |
void |
put(java.lang.String attribute,
java.lang.String value)
This method set the value of an attribute |
void |
readObject(marauroa.net.InputSerializer in)
Method to build the object from a stream of bytes |
void |
remove(java.lang.String attribute)
This methods remove the attribute from the container |
java.lang.String |
toString()
This method returns a String that represent the object |
void |
writeObject(marauroa.net.OutputSerializer out)
Method to convert the object into a stream |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
content
private java.util.Map content
Constructor Detail |
Attributes
public Attributes()
- Constructor
Method Detail |
has
public boolean has(java.lang.String attribute)
- This method returns true if the attribute exists
put
public void put(java.lang.String attribute, java.lang.String value)
- This method set the value of an attribute
put
public void put(java.lang.String attribute, int value)
- This method set the value of an attribute
get
public java.lang.String get(java.lang.String attribute) throws Attributes.AttributeNotFoundException
- This methods return the value of an attribute
remove
public void remove(java.lang.String attribute) throws Attributes.AttributeNotFoundException
- This methods remove the attribute from the container
equals
public boolean equals(java.lang.Object attr)
- This method returns true of both object are equal.
toString
public java.lang.String toString()
- This method returns a String that represent the object
writeObject
public void writeObject(marauroa.net.OutputSerializer out) throws java.io.IOException
- Description copied from interface:
marauroa.net.Serializable
- Method to convert the object into a stream
- Specified by:
writeObject
in interfacemarauroa.net.Serializable
readObject
public void readObject(marauroa.net.InputSerializer in) throws java.io.IOException, java.lang.ClassNotFoundException
- Description copied from interface:
marauroa.net.Serializable
- Method to build the object from a stream of bytes
- Specified by:
readObject
in interfacemarauroa.net.Serializable
|
|||||||||
Home >> All >> marauroa >> [ game overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |