decode static method
Implementation
static XdrBucketEntryType decode(XdrDataInputStream stream) {
int value = stream.readInt();
switch (value) {
case -1:
return METAENTRY;
case 0:
return LIVEENTRY;
case 1:
return DEADENTRY;
case 2:
return INITENTRY;
default:
throw Exception("Unknown enum value: $value");
}
}