Module org.dyn4j
Package org.dyn4j

Interface BinarySearchTreeSearchCriteria<E extends java.lang.Comparable<E>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int evaluate​(E comparable)
      Evaluates the current comparable determining which child to navigate to next.
    • Method Detail

      • evaluate

        int evaluate​(E comparable)
        Evaluates the current comparable determining which child to navigate to next.
        • Return zero to stop the search.
        • Return less than zero to continue searching to the left.
        • Return greater than zero to continue searching to the right
        Parameters:
        comparable - the current comparable
        Returns:
        int