Enum R1Interval.Endpoint

java.lang.Object
java.lang.Enum<R1Interval.Endpoint>
com.google.common.geometry.R1Interval.Endpoint
All Implemented Interfaces:
Serializable, Comparable<R1Interval.Endpoint>, java.lang.constant.Constable
Enclosing class:
R1Interval

static enum R1Interval.Endpoint extends Enum<R1Interval.Endpoint>
Designates which end of the interval to work with.
  • Enum Constant Details

  • Constructor Details

    • Endpoint

      private Endpoint()
  • Method Details

    • values

      public static R1Interval.Endpoint[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static R1Interval.Endpoint 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
    • getValue

      public abstract double getValue(R1Interval interval)
    • setValue

      public abstract void setValue(R1Interval interval, double value)
    • opposite

      public abstract R1Interval.Endpoint opposite()