Class ImmutableStringTrie.Overflow

  • All Implemented Interfaces:
    java.util.function.ToIntFunction<java.lang.String>
    Enclosing class:
    ImmutableStringTrie

    private static final class ImmutableStringTrie.Overflow
    extends java.lang.Object
    implements java.util.function.ToIntFunction<java.lang.String>
    Immutable trie that delegates searches that lie outside its range to an overflow trie.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.ToIntFunction<java.lang.String> next  
      private java.lang.String overflowKey  
      private ImmutableStringTrie trie  
    • Constructor Summary

      Constructors 
      Constructor Description
      Overflow​(char[] data, java.lang.String overflowKey, java.util.function.ToIntFunction<java.lang.String> next)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int applyAsInt​(java.lang.String key)  
      • Methods inherited from class java.lang.Object

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

      • overflowKey

        private final java.lang.String overflowKey
      • next

        private final java.util.function.ToIntFunction<java.lang.String> next
    • Constructor Detail

      • Overflow

        Overflow​(char[] data,
                 java.lang.String overflowKey,
                 java.util.function.ToIntFunction<java.lang.String> next)
    • Method Detail

      • applyAsInt

        public int applyAsInt​(java.lang.String key)
        Specified by:
        applyAsInt in interface java.util.function.ToIntFunction<java.lang.String>