b3.entrypoint.fixp.sbe.OrderCategory Maven / Gradle / Ivy
/* Generated SBE (Simple Binary Encoding) message codec. */
package b3.entrypoint.fixp.sbe;
/**
* Defines the type of interest behind a trade i.e. why a trade occurred.
*/
@SuppressWarnings("all")
public enum OrderCategory
{
RESULT_OF_OPTIONS_EXERCISE((byte)66),
RESULT_OF_ASSIGNMENT_FROM_OPTIONS_EXERCISE((byte)67),
RESULT_OF_SCHEDULED_OPTIONS_EXERCISE((byte)68),
RESULT_OF_MIDPOINT_ORDER((byte)69),
RESULT_OF_POINT_IN_TIME_AUCTION((byte)70),
/**
* To be used to represent not present or null.
*/
NULL_VAL((byte)0);
private final byte value;
OrderCategory(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 OrderCategory get(final byte value)
{
switch (value)
{
case 66: return RESULT_OF_OPTIONS_EXERCISE;
case 67: return RESULT_OF_ASSIGNMENT_FROM_OPTIONS_EXERCISE;
case 68: return RESULT_OF_SCHEDULED_OPTIONS_EXERCISE;
case 69: return RESULT_OF_MIDPOINT_ORDER;
case 70: return RESULT_OF_POINT_IN_TIME_AUCTION;
case 0: return NULL_VAL;
}
throw new IllegalArgumentException("Unknown value: " + value);
}
}