Class HashTableStack


  • public class HashTableStack
    extends java.lang.Object
    This class represents a stack of HashTable objects.
    Version:
    $Id: HashTableStack.java 1810674 2017-10-03 09:12:00Z ssteiner $
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  HashTableStack.Link
      To store the hashtables.
    • Constructor Summary

      Constructors 
      Constructor Description
      HashTableStack()
      Creates a new HashTableStack object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String get​(java.lang.String s)
      Gets an item in the table on the top of the stack.
      void pop()
      Removes the table on the top of the stack.
      void push()
      Pushes a new table on the stack.
      java.lang.String put​(java.lang.String s, java.lang.String v)
      Creates a mapping in the table on the top of the stack.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HashTableStack

        public HashTableStack()
        Creates a new HashTableStack object.
    • Method Detail

      • push

        public void push()
        Pushes a new table on the stack.
      • pop

        public void pop()
        Removes the table on the top of the stack.
      • put

        public java.lang.String put​(java.lang.String s,
                                    java.lang.String v)
        Creates a mapping in the table on the top of the stack.
      • get

        public java.lang.String get​(java.lang.String s)
        Gets an item in the table on the top of the stack.