@Override protected JSONCodec<?> enumCodec(final EnumTypeDefinition type) { return new QuotedJSONCodec<>(EnumStringCodec.from(type)); }
public static EnumStringCodec from(final EnumTypeDefinition normalizedType) { return new EnumStringCodec(Optional.of(normalizedType)); }
@Override protected JSONCodec<?> enumCodec(final EnumTypeDefinition type) { return new QuotedJSONCodec<>(EnumStringCodec.from(type)); }
public static EnumStringCodec from(final EnumTypeDefinition normalizedType) { return new EnumStringCodec(Optional.of(normalizedType)); }
@Override protected XmlCodec<?> enumCodec(final EnumTypeDefinition type) { return new QuotedXmlCodec<>(EnumStringCodec.from(type)); }
codec = EmptyStringCodec.INSTANCE; } else if (typeDefinition instanceof EnumTypeDefinition) { codec = EnumStringCodec.from((EnumTypeDefinition)typeDefinition); } else if (typeDefinition instanceof Int8TypeDefinition) { codec = AbstractIntegerStringCodec.from((Int8TypeDefinition) typeDefinition);
codec = EmptyStringCodec.INSTANCE; } else if (typeDefinition instanceof EnumTypeDefinition) { codec = EnumStringCodec.from((EnumTypeDefinition)typeDefinition); } else if (typeDefinition instanceof Int8TypeDefinition) { codec = AbstractIntegerStringCodec.from((Int8TypeDefinition) typeDefinition);