Enum ColorMapType

java.lang.Object
java.lang.Enum<ColorMapType>
cn.mapway.geo.shared.color.ColorMapType
All Implemented Interfaces:
Serializable, Comparable<ColorMapType>, java.lang.constant.Constable

public enum ColorMapType extends Enum<ColorMapType>
  • Enum Constant Details

    • COLOR_MAP_TYPE_UNIQUE

      public static final ColorMapType COLOR_MAP_TYPE_UNIQUE
    • COLOR_MAP_TYPE_RANGE

      public static final ColorMapType COLOR_MAP_TYPE_RANGE
  • Field Details

    • code

      public final Integer code
    • name

      public final String name
  • Method Details

    • values

      public static ColorMapType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ColorMapType 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 name
      NullPointerException - if the argument is null
    • getName

      public String getName()
    • getCode

      public Integer getCode()
    • valueOfCode

      public static ColorMapType valueOfCode(Integer code)