public enum Location extends Enum<Location>
Geometry.
The constants are also used as the row and column indices
of DE-9IM IntersectionMatrixes.| Enum Constant and Description |
|---|
BOUNDARY
The location value for the boundary of a geometry.
|
EXTERIOR
The location value for the exterior of a geometry.
|
INTERIOR
The location value for the interior of a geometry.
|
NONE
Used for uninitialized location values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex() |
static char |
toLocationSymbol(Location locationValue)
Converts the location value to a location symbol, for example,
EXTERIOR => 'e'
. |
String |
toString() |
static Location |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Location[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Location NONE
public static final Location INTERIOR
public static final Location BOUNDARY
public static final Location EXTERIOR
public static Location[] values()
for (Location c : Location.values()) System.out.println(c);
public static Location 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 static char toLocationSymbol(Location locationValue)
EXTERIOR => 'e'
.locationValue - either EXTERIOR, BOUNDARY, INTERIOR or NONEpublic int getIndex()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.