Class TableEntryKey

    • Constructor Detail

      • TableEntryKey

        public TableEntryKey​(int state,
                             AssemblySymbol sym)
        Create a new key for the given state and symbol
        Parameters:
        state - the row
        sym - the column
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object that)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(TableEntryKey that)
        Specified by:
        compareTo in interface java.lang.Comparable<TableEntryKey>
      • getState

        public int getState()
        Get the state (row) of the key in the table
        Returns:
        the state
      • getSym

        public AssemblySymbol getSym()
        Get the symbol (column) of the entry in the table
        Returns:
        the symbol