public class BinaryExternalizer<T,X,Y> extends Object implements Externalizer<T>
Externalizer for an object composed of 2 externalizable components.| Constructor and Description |
|---|
BinaryExternalizer(Class<T> targetClass,
Externalizer<X> externalizer1,
Externalizer<Y> externalizer2,
Function<T,X> accessor1,
Function<T,Y> accessor2,
BiFunction<X,Y,T> factory) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getTargetClass() |
T |
readObject(ObjectInput input) |
OptionalInt |
size(T object) |
void |
writeObject(ObjectOutput output,
T object) |
public void writeObject(ObjectOutput output, T object) throws IOException
writeObject in interface Externalizer<T>IOExceptionpublic T readObject(ObjectInput input) throws IOException, ClassNotFoundException
readObject in interface Externalizer<T>IOExceptionClassNotFoundExceptionpublic Class<T> getTargetClass()
getTargetClass in interface Externalizer<T>public OptionalInt size(T object)
size in interface Externalizer<T>Copyright © 2022 JBoss by Red Hat. All rights reserved.