Enum CubemapUtils.CubefaceType
- java.lang.Object
-
- java.lang.Enum<CubemapUtils.CubefaceType>
-
- org.openstreetmap.josm.plugins.streetside.cubemap.CubemapUtils.CubefaceType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CubemapUtils.CubefaceType>
- Enclosing class:
- CubemapUtils
public static enum CubemapUtils.CubefaceType extends java.lang.Enum<CubemapUtils.CubefaceType>
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.Integer,CubemapUtils.CubefaceType>mapprivate intvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateCubefaceType(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static CubemapUtils.CubefaceTypevalueOf(int cubefaceType)Returns the enum constant of this type with the specified name.static CubemapUtils.CubefaceTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CubemapUtils.CubefaceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE
public static final CubemapUtils.CubefaceType ONE
-
FOUR
public static final CubemapUtils.CubefaceType FOUR
-
SIXTEEN
public static final CubemapUtils.CubefaceType SIXTEEN
-
-
Field Detail
-
value
private final int value
-
map
private static java.util.Map<java.lang.Integer,CubemapUtils.CubefaceType> map
-
-
Constructor Detail
-
CubefaceType
private CubefaceType(int value)
-
-
Method Detail
-
values
public static CubemapUtils.CubefaceType[] 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 (CubemapUtils.CubefaceType c : CubemapUtils.CubefaceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CubemapUtils.CubefaceType 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
-
valueOf
public static CubemapUtils.CubefaceType valueOf(int cubefaceType)
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:
cubefaceType- 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 int getValue()
-
-