Class HashMap


  • public class HashMap
    extends java.lang.Object
    A simple class for testing membership of a fixed set of ASCII strings. The class must be initialised with enough space for all the strings, it will go into an infinite loop if it fills. The string matching is case-blind, using an algorithm that works only for ASCII
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int size  
      (package private) java.lang.String[] strings  
    • Constructor Summary

      Constructors 
      Constructor Description
      HashMap​(int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean get​(java.lang.String s)  
      void set​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

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

      • strings

        java.lang.String[] strings
      • size

        int size
    • Constructor Detail

      • HashMap

        public HashMap​(int size)
    • Method Detail

      • set

        public void set​(java.lang.String s)
      • get

        public boolean get​(java.lang.String s)