public enum LengthUnit extends Enum<LengthUnit>
public static final LengthUnit CM
public static final LengthUnit IN
public static LengthUnit[] values()
for (LengthUnit c : LengthUnit.values()) System.out.println(c);
public static LengthUnit valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getValue()
Copyright © 2020–2025. All rights reserved.