public enum TransType extends Enum<TransType>
| Enum Constant and Description |
|---|
HONGKONG_TO_SIMPLE
香港转简体
|
SIMPLE_TO_HONGKONG
简体转香港繁体
|
SIMPLE_TO_TAIWAN
简体转台湾繁体
|
SIMPLE_TO_TRADITIONAL
简体转繁体
|
TAIWAN_TO_SIMPLE
台湾转简体
|
TRADITIONAL_TO_SIMPLE
繁体转简体
|
| Modifier and Type | Method and Description |
|---|---|
String |
getType() |
static TransType |
typeOf(String type) |
static TransType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransType SIMPLE_TO_TRADITIONAL
public static final TransType SIMPLE_TO_HONGKONG
public static final TransType SIMPLE_TO_TAIWAN
public static final TransType TRADITIONAL_TO_SIMPLE
public static final TransType HONGKONG_TO_SIMPLE
public static final TransType TAIWAN_TO_SIMPLE
public static TransType[] values()
for (TransType c : TransType.values()) System.out.println(c);
public static TransType 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 String getType()
Copyright © 2022. All rights reserved.