public static PresenceCodec get(final short value)
    {
        switch (value)
        {
            case 0: return SBE_REQUIRED;
            case 1: return SBE_OPTIONAL;
            case 2: return SBE_CONSTANT;
            case 255: return NULL_VAL;
        }

        throw new IllegalArgumentException("Unknown value: " + value);
    }
Lookup the enum value representing the value.

@param value encoded to be looked up.
@return the enum value representing the value.
sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated/PresenceCodec.java