public enum CooperateType extends Enum<CooperateType>
| Enum Constant and Description |
|---|
ADD_SIGNATURE |
APPROVAL |
COUNTERSIGN |
DEPUTE |
REDUCTION_SIGNATURE |
TRANSFER |
VOTE |
| Modifier and Type | Field and Description |
|---|---|
private Integer |
key |
static BigDecimal |
ONE_HUNDRED |
private String |
value |
| Modifier and Type | Method and Description |
|---|---|
static CooperateType |
getByKey(Integer key) |
Integer |
getKey() |
static Integer |
getKeyByValue(String value) |
String |
getValue() |
static String |
getValueByKey(Integer key) |
static boolean |
isCountersign(BigDecimal ratio)
判断是否是会签
|
static boolean |
isOrSign(BigDecimal ratio)
判断是否为或签
|
static boolean |
isVoteSign(BigDecimal ratio)
判断是否是票签
|
static CooperateType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CooperateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CooperateType APPROVAL
public static final CooperateType TRANSFER
public static final CooperateType DEPUTE
public static final CooperateType COUNTERSIGN
public static final CooperateType VOTE
public static final CooperateType ADD_SIGNATURE
public static final CooperateType REDUCTION_SIGNATURE
public static final BigDecimal ONE_HUNDRED
public static CooperateType[] values()
for (CooperateType c : CooperateType.values()) System.out.println(c);
public static CooperateType 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 static Integer getKeyByValue(String value)
public static String getValueByKey(Integer key)
public static CooperateType getByKey(Integer key)
public static boolean isOrSign(BigDecimal ratio)
public static boolean isVoteSign(BigDecimal ratio)
public static boolean isCountersign(BigDecimal ratio)
Copyright © 2024. All rights reserved.