public enum CardSide extends Enum<CardSide>
| Enum Constant and Description |
|---|
BACK
反面
如:身份证有国徽的一面(国徽面)
|
BOTH
正反两面都有
|
FRONT
正面
如:身份证有照片的一面(人像面)
|
| Modifier and Type | Method and Description |
|---|---|
String |
sideName() |
static CardSide |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CardSide[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CardSide BOTH
public static final CardSide FRONT
public static final CardSide BACK
public static CardSide[] values()
for (CardSide c : CardSide.values()) System.out.println(c);
public static CardSide 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 sideName()
Copyright © 2021–2022 EasyJ????. All rights reserved.