public class LongExternalizer<T> extends Object implements Externalizer<T>
Externalizer for long-based externalization.| Constructor and Description |
|---|
LongExternalizer(Class<T> targetClass,
LongFunction<T> reader,
ToLongFunction<T> writer) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getTargetClass() |
T |
readObject(ObjectInput input) |
OptionalInt |
size(T object) |
void |
writeObject(ObjectOutput output,
T object) |
public LongExternalizer(Class<T> targetClass, LongFunction<T> reader, ToLongFunction<T> writer)
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.