public enum SecretLevelEnum extends Enum<SecretLevelEnum>
| Enum Constant and Description |
|---|
CONFIDENTIAL
机密
|
INTERNAL
内部
|
SECRET
秘密
|
UNCLASSIFIED
非密
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLevel() |
static boolean |
outOfSecretLevel(SecretLevelEnum source,
SecretLevelEnum target)
是否超越保密等级
|
static SecretLevelEnum |
valueOf(int level) |
static SecretLevelEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecretLevelEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecretLevelEnum UNCLASSIFIED
public static final SecretLevelEnum INTERNAL
public static final SecretLevelEnum SECRET
public static final SecretLevelEnum CONFIDENTIAL
public static SecretLevelEnum[] values()
for (SecretLevelEnum c : SecretLevelEnum.values()) System.out.println(c);
public static SecretLevelEnum 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 int getLevel()
public static SecretLevelEnum valueOf(int level)
public static boolean outOfSecretLevel(SecretLevelEnum source, SecretLevelEnum target)
source - 当前用户持有的保密等级target - 需要符合的保密等级Copyright © 2023. All rights reserved.