b3.entrypoint.fixp.sbe.AllocStatus Maven / Gradle / Ivy
/* Generated SBE (Simple Binary Encoding) message codec. */
package b3.entrypoint.fixp.sbe;
/**
* Identifies status of allocation.
*/
@SuppressWarnings("all")
public enum AllocStatus
{
ACCEPTED((byte)48),
REJECTED_BY_INTERMEDIARY((byte)53),
/**
* To be used to represent not present or null.
*/
NULL_VAL((byte)0);
private final byte value;
AllocStatus(final byte value)
{
this.value = value;
}
/**
* The raw encoded value in the Java type representation.
*
* @return the raw value encoded.
*/
public byte value()
{
return value;
}
/**
* Lookup the enum value representing the value.
*
* @param value encoded to be looked up.
* @return the enum value representing the value.
*/
public static AllocStatus get(final byte value)
{
switch (value)
{
case 48: return ACCEPTED;
case 53: return REJECTED_BY_INTERMEDIARY;
case 0: return NULL_VAL;
}
throw new IllegalArgumentException("Unknown value: " + value);
}
}