b3.entrypoint.fixp.sbe.RoutingInstruction Maven / Gradle / Ivy
/* Generated SBE (Simple Binary Encoding) message codec. */
package b3.entrypoint.fixp.sbe;
/**
* Indicates additional order instruction.
*/
@SuppressWarnings("all")
public enum RoutingInstruction
{
RETAIL_LIQUIDITY_TAKER((short)1),
WAIVED_PRIORITY((short)2),
BROKER_ONLY((short)3),
BROKER_ONLY_REMOVAL((short)4),
/**
* To be used to represent not present or null.
*/
NULL_VAL((short)255);
private final short value;
RoutingInstruction(final short value)
{
this.value = value;
}
/**
* The raw encoded value in the Java type representation.
*
* @return the raw value encoded.
*/
public short 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 RoutingInstruction get(final short value)
{
switch (value)
{
case 1: return RETAIL_LIQUIDITY_TAKER;
case 2: return WAIVED_PRIORITY;
case 3: return BROKER_ONLY;
case 4: return BROKER_ONLY_REMOVAL;
case 255: return NULL_VAL;
}
throw new IllegalArgumentException("Unknown value: " + value);
}
}