Class EndInclusionBuilder<T,U>

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

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

    • EndInclusionBuilder

      public EndInclusionBuilder(EndIntervalBuilder<T,U> endIntervalBuilder, U maximum)
      Creates a new EndInclusionBuilder.
      Parameters:
      endIntervalBuilder - the endIntervalBuilder value
      maximum - the maximum value
  • Method Details

    • inclusive

      public Interval<T> inclusive()
      Performs inclusive.
      Returns:
      the result of inclusive
    • exclusive

      public Interval<T> exclusive()
      Performs exclusive.
      Returns:
      the result of exclusive