uk.co.badgersinfoil.jactionscript
Class LookupTable

java.lang.Object
  |
  +--uk.co.badgersinfoil.jactionscript.LookupTable

public class LookupTable
extends java.lang.Object

Data for a LookupTableAction.


Constructor Summary
LookupTable(java.lang.String[] data)
           
 
Method Summary
 boolean contains(java.lang.String value)
           
 java.lang.String lookup(int index)
           
 int put(java.lang.String value)
          Adds the given string to the lookup table if it does not already contain it.
 int size()
           
 java.lang.String[] toArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupTable

public LookupTable(java.lang.String[] data)
Method Detail

contains

public boolean contains(java.lang.String value)

lookup

public java.lang.String lookup(int index)

put

public int put(java.lang.String value)
Adds the given string to the lookup table if it does not already contain it. Returns the index of the newly added entry if it was not already present, or the index of the existing entry otherwise.


size

public int size()

toArray

public java.lang.String[] toArray()