Class EndIntervalBuilder<T,U>

java.lang.Object
org.midheaven.math.EndIntervalBuilder<T,U>
Type Parameters:
T - type of the elements in the Interval
U - type of the value in the Interval

public class EndIntervalBuilder<T,U> extends Object
Builder for End Interval instances.
  • Constructor Details

    • EndIntervalBuilder

      public EndIntervalBuilder(IntervalBuilder<T,U> intervalBuilder, U minimum, boolean isOpen)
      Creates a new EndIntervalBuilder.
      Parameters:
      intervalBuilder - the intervalBuilder value
      minimum - the minimum value
      isOpen - the isOpen value
  • Method Details

    • to

      public EndInclusionBuilder<T,U> to(U maximum)
      Performs to.
      Parameters:
      maximum - the maximum value
      Returns:
      the result of to
    • toInfinity

      public Interval<T> toInfinity()
      Returns to Infinity.
      Returns:
      the result of toInfinity