com.springrts.ai.oo
Class OptionValues

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

public class OptionValues
extends Object
implements Comparable<OptionValues>


Method Summary
 int compareTo(OptionValues other)
           
 boolean equals(Object otherObject)
           
 String getKey(int optionIndex)
          Returns the key at index optionIndex in the options map for this Skirmish AI, or NULL if the optionIndex is invalid.
 int getSize()
          Returns the number of option key-value pairs in the options map for this Skirmish AI.
 String getValue(int optionIndex)
          Returns the value at index optionIndex in the options map for this Skirmish AI, or NULL if the optionIndex is invalid.
 String getValueByKey(String key)
          Returns the value associated with the given key in the options 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(OptionValues other)
Specified by:
compareTo in interface Comparable<OptionValues>

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 option key-value pairs in the options map for this Skirmish AI.


getKey

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


getValue

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


getValueByKey

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