@Override public final N deserialize(final String stringRepresentation) { final int base = provideBase(stringRepresentation); final N deserialized; if (base == 16) { deserialized = deserialize(normalizeHexadecimal(stringRepresentation),base); } else { deserialized = deserialize(stringRepresentation,base); } validate(deserialized); return deserialized; }
@Override protected JSONCodec<?> int16Codec(final Int16TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected JSONCodec<?> uint64Codec(final Uint64TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected JSONCodec<?> uint16Codec(final Uint16TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override public final N deserialize(final String stringRepresentation) { final int base = provideBase(stringRepresentation); final N deserialized; if (base == 16) { deserialized = deserialize(normalizeHexadecimal(stringRepresentation),base); } else { deserialized = deserialize(stringRepresentation,base); } validate(deserialized); return deserialized; }
@Override protected JSONCodec<?> int32Codec(final Int32TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected JSONCodec<?> uint32Codec(final Uint32TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected XmlCodec<?> int64Codec(final Int64TypeDefinition type) { return new NumberXmlCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected JSONCodec<?> uint64Codec(final Uint64TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected XmlCodec<?> uint32Codec(final Uint32TypeDefinition type) { return new NumberXmlCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected JSONCodec<?> int16Codec(final Int16TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected JSONCodec<?> int32Codec(final Int32TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected JSONCodec<?> uint8Codec(final Uint8TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected JSONCodec<?> uint32Codec(final Uint32TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected JSONCodec<?> int8Codec(final Int8TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected JSONCodec<?> uint8Codec(final Uint8TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected JSONCodec<?> uint16Codec(final Uint16TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected JSONCodec<?> int64Codec(final Int64TypeDefinition type) { return new NumberJSONCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected XmlCodec<?> int32Codec(final Int32TypeDefinition type) { return new NumberXmlCodec<>(AbstractIntegerStringCodec.from(type)); }
@Override protected XmlCodec<?> uint8Codec(final Uint8TypeDefinition type) { return new NumberXmlCodec<>(AbstractIntegerStringCodec.from(type)); }