decode method
- XdrDataInputStream stream
Implementation
static XdrClaimPredicateType decode(XdrDataInputStream stream) {
int value = stream.readInt();
switch (value) {
case 0:
return CLAIM_PREDICATE_UNCONDITIONAL;
case 1:
return CLAIM_PREDICATE_AND;
case 2:
return CLAIM_PREDICATE_OR;
case 3:
return CLAIM_PREDICATE_NOT;
case 4:
return CLAIM_PREDICATE_BEFORE_ABSOLUTE_TIME;
case 4:
return CLAIM_PREDICATE_BEFORE_RELATIVE_TIME;
default:
throw Exception("Unknown enum value: $value");
}
}