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

b3.entrypoint.fixp.sbe.MassActionRejectReason 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;


/**
 * Reason Order Mass Action Request was rejected.
 */
@SuppressWarnings("all")
public enum MassActionRejectReason
{
    MASS_ACTION_NOT_SUPPORTED((short)0),

    INVALID_OR_UNKNOWN_MARKET_SEGMENT((short)8),

    OTHER((short)99),

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

    private final short value;

    MassActionRejectReason(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 MassActionRejectReason get(final short value)
    {
        switch (value)
        {
            case 0: return MASS_ACTION_NOT_SUPPORTED;
            case 8: return INVALID_OR_UNKNOWN_MARKET_SEGMENT;
            case 99: return OTHER;
            case 255: return NULL_VAL;
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy