public enum IntervalEndpointType extends Enum<IntervalEndpointType>
- Describes the type of an interval endpoint : OPENED or CLOSED.
GenericInterval
An interval of Doubles ] 1.0 ; 2.0 [ is created this way :
Interval
Enum Constant and Description |
---|
CLOSED
the end point is in the interval.
|
OPEN
the end point is not in the interval.
|
Modifier and Type | Method and Description |
---|---|
int |
computeHashCode()
Computes hash code for the instance (13 if the instance is OPEN and 37 if the instance is CLOSED)
|
IntervalEndpointType |
getOpposite()
Returns OPEN if the instance is CLOSED and CLOSED if the instance is OPEN.
|
static IntervalEndpointType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IntervalEndpointType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IntervalEndpointType OPEN
public static final IntervalEndpointType CLOSED
public static IntervalEndpointType[] values()
for (IntervalEndpointType c : IntervalEndpointType.values()) System.out.println(c);
public static IntervalEndpointType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic IntervalEndpointType getOpposite()
IntervalEndpointType
public int computeHashCode()
Copyright © 2019 CNES. All rights reserved.