Package com.google.common.geometry
Enum R1Interval.Endpoint
- java.lang.Object
-
- java.lang.Enum<R1Interval.Endpoint>
-
- com.google.common.geometry.R1Interval.Endpoint
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<R1Interval.Endpoint>
- Enclosing class:
- R1Interval
static enum R1Interval.Endpoint extends java.lang.Enum<R1Interval.Endpoint>
Designates which end of the interval to work with.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Endpoint()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract double
getValue(R1Interval interval)
abstract R1Interval.Endpoint
opposite()
abstract void
setValue(R1Interval interval, double value)
static R1Interval.Endpoint
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static R1Interval.Endpoint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LO
public static final R1Interval.Endpoint LO
The low end of the interval.
-
HI
public static final R1Interval.Endpoint HI
The high end of the interval.
-
-
Method Detail
-
values
public static R1Interval.Endpoint[] 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 (R1Interval.Endpoint c : R1Interval.Endpoint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static R1Interval.Endpoint valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.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()
-
-