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

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

/* Generated SBE (Simple Binary Encoding) message codec. */
package b3.entrypoint.fixp.sbe;


/**
 * Identifies the status of the quote acknowledgement.
 */
@SuppressWarnings("all")
public enum QuoteStatus
{
    EXPIRED((short)7),

    ACCEPTED((short)0),

    REJECTED((short)5),

    QUOTE_NOT_FOUND((short)9),

    PENDING((short)10),

    PASS((short)11),

    CANCELED((short)17),

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

    private final short value;

    QuoteStatus(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 QuoteStatus get(final short value)
    {
        switch (value)
        {
            case 7: return EXPIRED;
            case 0: return ACCEPTED;
            case 5: return REJECTED;
            case 9: return QUOTE_NOT_FOUND;
            case 10: return PENDING;
            case 11: return PASS;
            case 17: return CANCELED;
            case 255: return NULL_VAL;
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy