All Downloads are FREE. Search and download functionalities are using the official Maven repository.

b3.entrypoint.fixp.sbe.OrdStatus Maven / Gradle / Ivy

There is a newer version: 0.157
Show newest version
/* Generated SBE (Simple Binary Encoding) message codec. */
package b3.entrypoint.fixp.sbe;


/**
 * Identifies current status of order.
 */
@SuppressWarnings("all")
public enum OrdStatus
{
    NEW((byte)48),

    PARTIALLY_FILLED((byte)49),

    FILLED((byte)50),

    CANCELED((byte)52),

    REPLACED((byte)53),

    REJECTED((byte)56),

    EXPIRED((byte)67),

    RESTATED((byte)82),

    PREVIOUS_FINAL_STATE((byte)90),

    /**
     * To be used to represent not present or null.
     */
    NULL_VAL((byte)0);

    private final byte value;

    OrdStatus(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 OrdStatus get(final byte value)
    {
        switch (value)
        {
            case 48: return NEW;
            case 49: return PARTIALLY_FILLED;
            case 50: return FILLED;
            case 52: return CANCELED;
            case 53: return REPLACED;
            case 56: return REJECTED;
            case 67: return EXPIRED;
            case 82: return RESTATED;
            case 90: return PREVIOUS_FINAL_STATE;
            case 0: return NULL_VAL;
        }

        throw new IllegalArgumentException("Unknown value: " + value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy