public enum AccessMode extends Enum<AccessMode>
read-write or read-only.| Modifier and Type | Field and Description |
|---|---|
static AccessMode |
DEFAULT
The default
AccessMode: rw |
| Modifier and Type | Method and Description |
|---|---|
static AccessMode |
fromBoolean(boolean accessMode) |
boolean |
toBoolean() |
static AccessMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessMode rw
public static final AccessMode ro
public static final AccessMode DEFAULT
AccessMode: rwpublic static AccessMode[] values()
for (AccessMode c : AccessMode.values()) System.out.println(c);
public static AccessMode 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 final AccessMode fromBoolean(boolean accessMode)
public final boolean toBoolean()
Copyright © 2017. All Rights Reserved.