Class IntervalBuilder<T,U>

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

public class IntervalBuilder<T,U> extends Object
Builder for Interval instances.
  • Method Details

    • from

      public StartInclusionBuilder<T,U> from(U value)
      Creates an instance from the provided source.
      Parameters:
      value - the value value
      Returns:
      the result of from
    • fromInfinity

      public EndIntervalBuilder<T,U> fromInfinity()
      Returns from Infinity.
      Returns:
      the result of fromInfinity