()
| 936 | } |
| 937 | |
| 938 | byte[] toBytes() { |
| 939 | if (serialized == null) { |
| 940 | synchronized (this) { |
| 941 | if (serialized == null) { |
| 942 | serialized = streamToBytes(toStream()); |
| 943 | } |
| 944 | } |
| 945 | } |
| 946 | return serialized; |
| 947 | } |
| 948 | |
| 949 | <T2> T2 toObject(Key<T2> key) { |
| 950 | if (key.serializesToStreams()) { |
no test coverage detected