public class ValueExternalizer<T> extends Object implements Externalizer<T>
Externalizer for a constant value.| Modifier and Type | Field and Description |
|---|---|
static Externalizer<Void> |
VOID |
| Constructor and Description |
|---|
ValueExternalizer(T value) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getTargetClass() |
T |
readObject(ObjectInput input) |
OptionalInt |
size(T object) |
void |
writeObject(ObjectOutput output,
T object) |
public static final Externalizer<Void> VOID
public ValueExternalizer(T value)
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 © 2021 JBoss by Red Hat. All rights reserved.