Class TreeObject

    • Constructor Detail

      • TreeObject

        public TreeObject​(java.lang.Object object,
                          Comparison4 function)
    • Method Detail

      • compare

        public int compare​(Tree tree)
        Description copied from class: Tree
        returns 0, if keys are equal uses this - other returns positive if this is greater than a_to returns negative if this is smaller than a_to
        Specified by:
        compare in class Tree
      • key

        public java.lang.Object key()
        Specified by:
        key in class Tree