com.springrts.ai.oo
Class Info

java.lang.Object
  extended by com.springrts.ai.oo.Info
All Implemented Interfaces:
Comparable<Info>

public class Info
extends Object
implements Comparable<Info>


Method Summary
 int compareTo(Info other)
           
 boolean equals(Object otherObject)
           
 String getDescription(int infoIndex)
          Returns the description of the key at index infoIndex in the info map for this Skirmish AI, or NULL if the infoIndex is invalid.
 String getKey(int infoIndex)
          Returns the key at index infoIndex in the info map for this Skirmish AI, or NULL if the infoIndex is invalid.
 int getSize()
          Returns the number of info key-value pairs in the info map for this Skirmish AI.
 String getValue(int infoIndex)
          Returns the value at index infoIndex in the info map for this Skirmish AI, or NULL if the infoIndex is invalid.
 String getValueByKey(String key)
          Returns the value associated with the given key in the info map for this Skirmish AI, or NULL if not found.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(Info other)
Specified by:
compareTo in interface Comparable<Info>

equals

public boolean equals(Object otherObject)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getSize

public int getSize()
Returns the number of info key-value pairs in the info map for this Skirmish AI.


getKey

public String getKey(int infoIndex)
Returns the key at index infoIndex in the info map for this Skirmish AI, or NULL if the infoIndex is invalid.


getValue

public String getValue(int infoIndex)
Returns the value at index infoIndex in the info map for this Skirmish AI, or NULL if the infoIndex is invalid.


getDescription

public String getDescription(int infoIndex)
Returns the description of the key at index infoIndex in the info map for this Skirmish AI, or NULL if the infoIndex is invalid.


getValueByKey

public String getValueByKey(String key)
Returns the value associated with the given key in the info map for this Skirmish AI, or NULL if not found.