/** * The most applicable null value for the encoded type. * * @return most applicable null value for the encoded type. */ public PrimitiveValue applicableNullValue() { if (null != nullValue) { return nullValue; } return primitiveType.nullValue(); }
encodingBuilder.nullValue(encodingType.nullValue());
/** * The most applicable null value for the encoded type. * * @return most applicable null value for the encoded type. */ public PrimitiveValue applicableNullValue() { if (null != nullValue) { return nullValue; } return primitiveType.nullValue(); }
/** * The most applicable null value for the encoded type. * * @return most applicable null value for the encoded type. */ public PrimitiveValue applicableNullValue() { if (null != nullValue) { return nullValue; } return primitiveType.nullValue(); }
/** * The most applicable null value for the encoded type. * * @return most applicable null value for the encoded type. */ public PrimitiveValue applicableNullValue() { if (null != nullValue) { return nullValue; } return primitiveType.nullValue(); }
private void add(final EnumType type, final int offset, final Field field) { final PrimitiveType encodingType = type.encodingType(); final Encoding.Builder encodingBuilder = new Encoding.Builder() .primitiveType(encodingType) .semanticType(semanticTypeOf(type, field)) .byteOrder(byteOrder); if (type.presence() == Presence.OPTIONAL) { encodingBuilder.nullValue(encodingType.nullValue()); } final Token.Builder builder = new Token.Builder() .signal(Signal.BEGIN_ENUM) .name(type.name()) .size(encodingType.size()) .offset(offset) .encoding(encodingBuilder.build()); if (field != null) { builder.version(field.sinceVersion()); } tokenList.add(builder.build()); for (final EnumType.ValidValue validValue : type.validValues()) { add(validValue, encodingType, field); } builder.signal(Signal.END_ENUM); tokenList.add(builder.build()); }
encodingBuilder.nullValue(encodingType.nullValue());
encodingBuilder.nullValue(encodingType.nullValue());