Serializable, Comparable<ResourceAccessMode>@API(status=EXPERIMENTAL,
since="5.3")
public enum ResourceAccessMode
extends Enum<ResourceAccessMode>
ResourceLock| Enum Constant | Description |
|---|---|
READ |
Require only read access to the resource.
|
READ_WRITE |
Require read and write access to the resource.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ResourceAccessMode |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ResourceAccessMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceAccessMode READ_WRITE
public static final ResourceAccessMode READ
public static ResourceAccessMode[] values()
for (ResourceAccessMode c : ResourceAccessMode.values()) System.out.println(c);
public static ResourceAccessMode 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 nullCopyright © 2019. All rights reserved.