Class ArrayTernaryTrie.Growing<V>

java.lang.Object
org.eclipse.jetty.util.ArrayTernaryTrie.Growing<V>
All Implemented Interfaces:
Trie<V>
Enclosing class:
ArrayTernaryTrie<V>

@Deprecated(since="2021-05-27") public static class ArrayTernaryTrie.Growing<V> extends Object implements Trie<V>
Deprecated.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
    Growing(boolean insensitive, int capacity, int growby)
    Deprecated.
     
    Growing(int capacity, int growby)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
     
    void
    Deprecated.
     
    boolean
    Deprecated.
     
    Deprecated.
    Get an exact match from a String key
    get(String s, int offset, int len)
    Deprecated.
    Get an exact match from a String key
    Deprecated.
    Get an exact match from a segment of a ByteBuufer as key
    get(ByteBuffer b, int offset, int len)
    Deprecated.
    Get an exact match from a segment of a ByteBuufer as key
    getBest(byte[] b, int offset, int len)
    Deprecated.
    Get the best match from key in a byte array.
    Deprecated.
    Get the best match from key in a String.
    getBest(String s, int offset, int length)
    Deprecated.
    Get the best match from key in a String.
    getBest(ByteBuffer b, int offset, int len)
    Deprecated.
    Get the best match from key in a byte buffer.
    int
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    Deprecated.
     
    boolean
    put(String s, V v)
    Deprecated.
    Put an entry into the Trie
    boolean
    put(V v)
    Deprecated.
    Put a value as both a key and a value.
    Deprecated.
     
    int
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.util.Trie

    getBest, getBest
  • Constructor Details

    • Growing

      public Growing()
      Deprecated.
    • Growing

      public Growing(int capacity, int growby)
      Deprecated.
    • Growing

      public Growing(boolean insensitive, int capacity, int growby)
      Deprecated.
  • Method Details

    • put

      public boolean put(V v)
      Deprecated.
      Description copied from interface: Trie
      Put a value as both a key and a value.
      Specified by:
      put in interface Trie<V>
      Parameters:
      v - The value and key
      Returns:
      True if the Trie had capacity to add the field.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • remove

      public V remove(String s)
      Deprecated.
      Specified by:
      remove in interface Trie<V>
    • get

      public V get(String s)
      Deprecated.
      Description copied from interface: Trie
      Get an exact match from a String key
      Specified by:
      get in interface Trie<V>
      Parameters:
      s - The key
      Returns:
      the value for the string key
    • get

      public V get(ByteBuffer b)
      Deprecated.
      Description copied from interface: Trie
      Get an exact match from a segment of a ByteBuufer as key
      Specified by:
      get in interface Trie<V>
      Parameters:
      b - The buffer
      Returns:
      The value or null if not found
    • getBest

      public V getBest(byte[] b, int offset, int len)
      Deprecated.
      Description copied from interface: Trie
      Get the best match from key in a byte array. The key is assumed to by ISO_8859_1 characters.
      Specified by:
      getBest in interface Trie<V>
      Parameters:
      b - The buffer
      offset - The offset within the array of the key
      len - the length of the key
      Returns:
      The value or null if not found
    • isCaseInsensitive

      public boolean isCaseInsensitive()
      Deprecated.
      Specified by:
      isCaseInsensitive in interface Trie<V>
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object
    • clear

      public void clear()
      Deprecated.
      Specified by:
      clear in interface Trie<V>
    • put

      public boolean put(String s, V v)
      Deprecated.
      Description copied from interface: Trie
      Put an entry into the Trie
      Specified by:
      put in interface Trie<V>
      Parameters:
      s - The key for the entry
      v - The value of the entry
      Returns:
      True if the Trie had capacity to add the field.
    • get

      public V get(String s, int offset, int len)
      Deprecated.
      Description copied from interface: Trie
      Get an exact match from a String key
      Specified by:
      get in interface Trie<V>
      Parameters:
      s - The key
      offset - The offset within the string of the key
      len - the length of the key
      Returns:
      the value for the string / offset / length
    • get

      public V get(ByteBuffer b, int offset, int len)
      Deprecated.
      Description copied from interface: Trie
      Get an exact match from a segment of a ByteBuufer as key
      Specified by:
      get in interface Trie<V>
      Parameters:
      b - The buffer
      offset - The offset within the buffer of the key
      len - the length of the key
      Returns:
      The value or null if not found
    • getBest

      public V getBest(String s)
      Deprecated.
      Description copied from interface: Trie
      Get the best match from key in a String.
      Specified by:
      getBest in interface Trie<V>
      Parameters:
      s - The string
      Returns:
      The value or null if not found
    • getBest

      public V getBest(String s, int offset, int length)
      Deprecated.
      Description copied from interface: Trie
      Get the best match from key in a String.
      Specified by:
      getBest in interface Trie<V>
      Parameters:
      s - The string
      offset - The offset within the string of the key
      length - the length of the key
      Returns:
      The value or null if not found
    • getBest

      public V getBest(ByteBuffer b, int offset, int len)
      Deprecated.
      Description copied from interface: Trie
      Get the best match from key in a byte buffer. The key is assumed to by ISO_8859_1 characters.
      Specified by:
      getBest in interface Trie<V>
      Parameters:
      b - The buffer
      offset - The offset within the buffer of the key
      len - the length of the key
      Returns:
      The value or null if not found
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • keySet

      public Set<String> keySet()
      Deprecated.
      Specified by:
      keySet in interface Trie<V>
    • isFull

      public boolean isFull()
      Deprecated.
      Specified by:
      isFull in interface Trie<V>
    • dump

      public void dump()
      Deprecated.
    • isEmpty

      public boolean isEmpty()
      Deprecated.
    • size

      public int size()
      Deprecated.