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

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


/**
 * Specifies if a simultaneous trade of the underlying is to be performed.
 */
@SuppressWarnings("all")
public enum ExecuteUnderlyingTrade
{
    NO_UNDERLYING_TRADE((byte)48),

    UNDERLYING_OPPOSING_TRADE((byte)49),

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

    private final byte value;

    ExecuteUnderlyingTrade(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 ExecuteUnderlyingTrade get(final byte value)
    {
        switch (value)
        {
            case 48: return NO_UNDERLYING_TRADE;
            case 49: return UNDERLYING_OPPOSING_TRADE;
            case 0: return NULL_VAL;
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy