@PublicApi @ThreadSafe public static enum Mode.Bits extends Enum<Mode.Bits>
Enum Constant and Description |
---|
ALL |
EXECUTE |
NONE |
READ |
READ_EXECUTE |
READ_WRITE |
WRITE |
WRITE_EXECUTE |
Modifier and Type | Method and Description |
---|---|
Mode.Bits |
and(Mode.Bits that) |
static Mode.Bits |
fromProto(Bits protoBits) |
static Mode.Bits |
fromShort(short bits)
Creates a
Bits from a short. |
static Mode.Bits |
fromString(String string) |
boolean |
imply(Mode.Bits that)
Checks whether these bits imply the given bits.
|
Mode.Bits |
not() |
Mode.Bits |
or(Mode.Bits that) |
AclActions |
toAclActions() |
Set<AclAction> |
toAclActionSet() |
Bits |
toProto() |
String |
toString() |
static Mode.Bits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mode.Bits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mode.Bits NONE
public static final Mode.Bits EXECUTE
public static final Mode.Bits WRITE
public static final Mode.Bits WRITE_EXECUTE
public static final Mode.Bits READ
public static final Mode.Bits READ_EXECUTE
public static final Mode.Bits READ_WRITE
public static final Mode.Bits ALL
public static Mode.Bits[] values()
for (Mode.Bits c : Mode.Bits.values()) System.out.println(c);
public static Mode.Bits 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 Mode.Bits fromString(String string)
string
- the string representationBits
instancepublic static Mode.Bits fromProto(Bits protoBits)
protoBits
- the proto bitspublic Bits toProto()
public boolean imply(Mode.Bits that)
that
- mode bitspublic Mode.Bits and(Mode.Bits that)
that
- mode bitspublic Mode.Bits or(Mode.Bits that)
that
- mode bitspublic Mode.Bits not()
public Set<AclAction> toAclActionSet()
AclAction
s implied by this modepublic AclActions toAclActions()
AclAction
s implied by this modeCopyright © 2023. All Rights Reserved.