Class Leaf<T>

  • All Implemented Interfaces:
    Serializable

    public class Leaf<T>
    extends Node
    A leaf node in the binary tree containing multiple values associated with a specific hash value
    Author:
    Kilian
    See Also:
    Serialized Form
    • Constructor Detail

      • Leaf

        public Leaf()
    • Method Detail

      • addData

        public void addData​(T data)
        Append new data to the leaf
        Parameters:
        data - Value which will be associated with the hash this leaf represents
      • getData

        public ArrayList<T> getData()
        Returns:
        a strong reference to the arraylist backing this leaf
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Node
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Node