public enum BucketEntryType extends java.lang.Enum<BucketEntryType> implements XdrElement
enum BucketEntryType { METAENTRY = -1, // At-and-after protocol 11: bucket metadata, should come first. LIVEENTRY = 0, // Before protocol 11: created-or-updated; // At-and-after protocol 11: only updated. DEADENTRY = 1, INITENTRY = 2 // At-and-after protocol 11: only created. };
Enum Constant and Description |
---|
DEADENTRY |
INITENTRY |
LIVEENTRY |
METAENTRY |
Modifier and Type | Method and Description |
---|---|
static BucketEntryType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static BucketEntryType |
fromXdrBase64(java.lang.String xdr) |
static BucketEntryType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static BucketEntryType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BucketEntryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
toXdrBase64, toXdrByteArray
public static final BucketEntryType METAENTRY
public static final BucketEntryType LIVEENTRY
public static final BucketEntryType DEADENTRY
public static final BucketEntryType INITENTRY
public static BucketEntryType[] values()
for (BucketEntryType c : BucketEntryType.values()) System.out.println(c);
public static BucketEntryType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static BucketEntryType decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static BucketEntryType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static BucketEntryType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException