Interface Index.Mutable<V>

  • Type Parameters:
    V - the entry type
    All Superinterfaces:
    Index<V>
    Enclosing interface:
    Index<V>

    public static interface Index.Mutable<V>
    extends Index<V>
    A mutable String lookup data structure. Implementations are not thread-safe.
    • Method Detail

      • put

        boolean put​(java.lang.String s,
                    V v)
        Put an entry into the index.
        Parameters:
        s - The key for the entry. Must be non null, but can be empty.
        v - The value of the entry. Must be non null.
        Returns:
        True if the index had capacity to add the field.
      • put

        boolean put​(V v)
        Put a value as both a key and a value.
        Parameters:
        v - The value and key
        Returns:
        True if the Trie had capacity to add the field.
      • remove

        V remove​(java.lang.String s)
        Remove an entry from the index.
        Parameters:
        s - The key for the entry
        Returns:
        The removed value of the entry
      • clear

        void clear()
        Remove all entries from the index.