b3.entrypoint.fixp.sbe.CxlRejResponseTo Maven / Gradle / Ivy
/* Generated SBE (Simple Binary Encoding) message codec. */
package b3.entrypoint.fixp.sbe;
/**
* Identifies the type of request that this cancel reject is in response to.
*/
@SuppressWarnings("all")
public enum CxlRejResponseTo
{
ORDER_CANCEL_REQUEST((short)1),
ORDER_CANCEL_REPLACE_REQUEST((short)2),
/**
* To be used to represent not present or null.
*/
NULL_VAL((short)255);
private final short value;
CxlRejResponseTo(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 CxlRejResponseTo get(final short value)
{
switch (value)
{
case 1: return ORDER_CANCEL_REQUEST;
case 2: return ORDER_CANCEL_REPLACE_REQUEST;
case 255: return NULL_VAL;
}
throw new IllegalArgumentException("Unknown value: " + value);
}
}