Class TreeUtil.DiameterHeightPair

java.lang.Object
org.drip.service.common.TreeUtil.DiameterHeightPair
Enclosing class:
TreeUtil

public static class TreeUtil.DiameterHeightPair
extends java.lang.Object
DiameterHeightPair implements Diameter Height Duo.
  • Constructor Summary

    Constructors
    Constructor Description
    DiameterHeightPair​(int height, int diameter)
    DiameterHeightPair Constructor
  • Method Summary

    Modifier and Type Method Description
    int diameter()
    Retrieve the Diameter
    int height()
    Retrieve the Height

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DiameterHeightPair

      public DiameterHeightPair​(int height, int diameter) throws java.lang.Exception
      DiameterHeightPair Constructor
      Parameters:
      height - Height
      diameter - Diameter
      Throws:
      java.lang.Exception - Thrown if Inputs are Invalid
  • Method Details

    • height

      public int height()
      Retrieve the Height
      Returns:
      The Height
    • diameter

      public int diameter()
      Retrieve the Diameter
      Returns:
      The Diameter