public static enum Authority.AuthorityType extends Enum<Authority.AuthorityType>
| 限定符和类型 | 方法和说明 |
|---|---|
String |
description() |
boolean |
isReadable() |
boolean |
isWritable() |
int |
value() |
static Authority.AuthorityType |
valueOf(int type)
读写权限
|
static Authority.AuthorityType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Authority.AuthorityType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Authority.AuthorityType R
public static final Authority.AuthorityType RW
public static Authority.AuthorityType[] values()
for (Authority.AuthorityType c : Authority.AuthorityType.values()) System.out.println(c);
public static Authority.AuthorityType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int value()
public String description()
public boolean isReadable()
public boolean isWritable()
public static Authority.AuthorityType valueOf(int type)
type - Copyright © 2020 Joyqueue Community. All rights reserved.