@Override public <T> SimpleMarshalledValue<T> createMarshalledValue(T object) { return new HashableMarshalledValue<>(object, this.context); } }
@Override public void writeObject(ObjectOutput output, HashableMarshalledValue<T> object) throws IOException { this.externalizer.writeObject(output, object); output.writeInt(object.hashCode()); }
@Override public HashableMarshalledValue<T> readObject(ObjectInput input) throws IOException, ClassNotFoundException { SimpleMarshalledValue<T> value = this.externalizer.readObject(input); int hashCode = input.readInt(); return new HashableMarshalledValue<>(value.getBytes(), hashCode); }
@Override public void writeObject(ObjectOutput output, HashableMarshalledValue<T> object) throws IOException { this.externalizer.writeObject(output, object); output.writeInt(object.hashCode()); }
@Override public <T> SimpleMarshalledValue<T> createMarshalledValue(T object) { return new HashableMarshalledValue<>(object, this.context); } }
@Override public HashableMarshalledValue<T> readObject(ObjectInput input) throws IOException, ClassNotFoundException { SimpleMarshalledValue<T> value = this.externalizer.readObject(input); int hashCode = input.readInt(); return new HashableMarshalledValue<>(value.getBytes(), hashCode); }