public enum DirMode extends Enum<DirMode>
This enum represents a bit field.
The least-significant-bit (LSB) is: 0: PERSISTENT 1: EPHEMERAL
The second LSB is: 0: NON-SEQUENTIAL 1: SEQUENTIAL
For SEQUENTIAL nodes, all implementations are required to make the resulting versioned subdirectories both lexographically sortable from the highest to lowest revision and also the SEQUENTIAL suffix will be convertable to an integer.
Enum Constant and Description |
---|
EPHEMERAL |
EPHEMERAL_SEQUENTIAL |
PERSISTENT |
PERSISTENT_SEQUENTIAL |
SEQUENTIAL |
Modifier and Type | Field and Description |
---|---|
int |
flag |
Modifier and Type | Method and Description |
---|---|
boolean |
isEphemeral() |
boolean |
isSequential() |
static DirMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DirMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DirMode PERSISTENT
public static final DirMode EPHEMERAL
public static final DirMode SEQUENTIAL
public static final DirMode PERSISTENT_SEQUENTIAL
public static final DirMode EPHEMERAL_SEQUENTIAL
public static DirMode[] values()
for (DirMode c : DirMode.values()) System.out.println(c);
public static DirMode 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 boolean isEphemeral()
public boolean isSequential()
Copyright © 2018. All rights reserved.