public PrimitiveValue applicableMaxValue()
    {
        if (null != maxValue)
        {
            return maxValue;
        }

        return primitiveType.maxValue();
    }
The most applicable max value for the encoded type.

@return most applicable max value for the encoded type.
sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/Encoding.java