Re: Different serialization strategies for different formats?

2019-06-23 Thread Remi Forax
- Mail original - > De: "Brian Goetz" > À: "Tagir Valeev" > Cc: "amber-spec-experts" > Envoyé: Jeudi 20 Juin 2019 15:43:46 > Objet: Re: Different serialization strategies for different formats? > Yes, a similar question came up in an int

Re: Different serialization strategies for different formats?

2019-06-20 Thread Brian Goetz
Yes, a similar question came up in an internal discussion as well. > Consider we have a Color class which represents a color in RGB format: > > class Color { private final int rgb; } > > The most obvious and efficient way to serialize/deserialize its state is to > extract this int field: >

Different serialization strategies for different formats?

2019-06-20 Thread Tagir Valeev
Hello! Consider we have a Color class which represents a color in RGB format: class Color { private final int rgb; } The most obvious and efficient way to serialize/deserialize its state is to extract this int field: class Color { private final int rgb; @Deserializer public Color(int