org.metasyntactic.math.automata
Class LRParseTable.StateAndSymbol

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--org.metasyntactic.math.automata.LRParseTable.StateAndSymbol
All Implemented Interfaces:
java.util.Collection, java.util.List, java.io.Serializable
Enclosing class:
LRParseTable

protected static class LRParseTable.StateAndSymbol
extends java.util.AbstractList
implements java.io.Serializable

This class merely serves as a struct to allow a state and a symbol to be used as an index in a mapping

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected LRParseTable.StateAndSymbol(java.lang.Object state, java.lang.Object symbol)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object get(int i)
           
 int hashCode()
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

LRParseTable.StateAndSymbol

protected LRParseTable.StateAndSymbol(java.lang.Object state,
                                      java.lang.Object symbol)
Method Detail

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.List
Overrides:
hashCode in class java.util.AbstractList

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.List
Overrides:
equals in class java.util.AbstractList

size

public int size()
Specified by:
size in interface java.util.List
Specified by:
size in class java.util.AbstractCollection

get

public java.lang.Object get(int i)
Specified by:
get in interface java.util.List
Specified by:
get in class java.util.AbstractList