Enum Interval.Closure

    • Enum Constant Detail

      • openClosed

        public static final Interval.Closure openClosed
        The interval is of the form (leftMargin,rightMargin]
      • openOpen

        public static final Interval.Closure openOpen
        The interval is of the form (leftMargin,rightMargin)
      • closedOpen

        public static final Interval.Closure closedOpen
        The interval is of the form [leftMargin,rightMargin)
      • closedClosed

        public static final Interval.Closure closedClosed
        The interval is of the form [leftMargin,rightMargin]
    • Method Detail

      • values

        public static Interval.Closure[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Interval.Closure c : Interval.Closure.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Interval.Closure valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • closure

        public static Interval.Closure closure​(boolean fromClosed,
                                               boolean toClosed)
        Returns a closure for the given parameters
        Parameters:
        fromClosed - whether the from side is closed
        toClosed - whether the to side is closed
        Returns:
        a closure