Class CharTable

    • Field Detail

      • keyTable

        protected char[][] keyTable
    • Constructor Detail

      • CharTable

        public CharTable​(int initialSize)
    • Method Detail

      • resize

        protected void resize​(int size)
        Overrides:
        resize in class HashTable
      • hash

        protected final int hash​(char[] source,
                                 int start,
                                 int length)
      • hash

        protected final int hash​(int pos)
        Overrides:
        hash in class HashTable
      • hash

        protected final int hash​(char[] obj)
      • addIndex

        protected final int addIndex​(char[] buffer)
      • addIndex

        public final int addIndex​(char[] buffer,
                                  int start,
                                  int len)
      • removeEntry

        protected void removeEntry​(int i)
      • toList

        public List<char[]> toList()
      • keyAt

        public final char[] keyAt​(int i)
      • containsKey

        public final boolean containsKey​(char[] key,
                                         int start,
                                         int len)
      • containsKey

        public final boolean containsKey​(char[] key)
      • findKey

        public final char[] findKey​(char[] buffer,
                                    int start,
                                    int len)
      • lookup

        public int lookup​(char[] buffer)
      • lookup

        protected final int lookup​(char[] buffer,
                                   int start,
                                   int len)
      • lookup

        protected final int lookup​(char[] buffer,
                                   int start,
                                   int len,
                                   int hash)
      • keys

        public char[][] keys()
        Since:
        5.7