Interface RSHashTable<T extends RSNode>

  • All Superinterfaces:
    java.lang.Iterable<T>
    All Known Subinterfaces:
    RSNodeHashTable

    public interface RSHashTable<T extends RSNode>
    extends java.lang.Iterable<T>
    A data structure that uses a hash function to compute an index into an array of buckets from which node objects can be quickly obtained.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T get​(long value)
      Gets a node by its hash value.
      java.util.Collection<T> getNodes()
      Gets a collection of all nodes stored in this table.
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
    • Method Detail

      • get

        T get​(long value)
        Gets a node by its hash value.
        Parameters:
        value - the node value
        Returns:
        the associated node
      • getNodes

        java.util.Collection<T> getNodes()
        Gets a collection of all nodes stored in this table.
        Returns:
        the nodes stored