Package mil.nga.gars.grid
Enum GridType
- java.lang.Object
-
- java.lang.Enum<GridType>
-
- mil.nga.gars.grid.GridType
-
- All Implemented Interfaces:
Serializable
,Comparable<GridType>
public enum GridType extends Enum<GridType>
Grid type enumeration- Author:
- osbornb
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIFTEEN_MINUTE
Fifteen MinuteFIVE_DEGREE
Five DegreeFIVE_MINUTE
Five MinuteONE_DEGREE
One DegreeTEN_DEGREE
Ten DegreeTHIRTY_MINUTE
Thirty MinuteTWENTY_DEGREE
Twenty Degree
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getPrecision()
Get the precision in degreesstatic GridType
getPrecision(double value)
Get the precision of the value in degreesstatic Set<GridType>
lessPrecise(GridType type)
Get the less precise (larger precision value) grid typesstatic Set<GridType>
morePrecise(GridType type)
Get the more precise (smaller precision value) grid typesstatic GridType
valueOf(String name)
Returns the enum constant of this type with the specified name.static GridType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TWENTY_DEGREE
public static final GridType TWENTY_DEGREE
Twenty Degree
-
TEN_DEGREE
public static final GridType TEN_DEGREE
Ten Degree
-
FIVE_DEGREE
public static final GridType FIVE_DEGREE
Five Degree
-
ONE_DEGREE
public static final GridType ONE_DEGREE
One Degree
-
THIRTY_MINUTE
public static final GridType THIRTY_MINUTE
Thirty Minute
-
FIFTEEN_MINUTE
public static final GridType FIFTEEN_MINUTE
Fifteen Minute
-
FIVE_MINUTE
public static final GridType FIVE_MINUTE
Five Minute
-
-
Method Detail
-
values
public static GridType[] 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 (GridType c : GridType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GridType 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 nameNullPointerException
- if the argument is null
-
getPrecision
public double getPrecision()
Get the precision in degrees- Returns:
- precision degrees
-
getPrecision
public static GridType getPrecision(double value)
Get the precision of the value in degrees- Parameters:
value
- value in degrees- Returns:
- precision grid type
-
lessPrecise
public static Set<GridType> lessPrecise(GridType type)
Get the less precise (larger precision value) grid types- Parameters:
type
- grid type- Returns:
- grid types less precise
-
-