public class CopyOnWriteCollectionExternalizer<T extends Collection<Object>> extends Object implements Externalizer<T>
Collection.| Modifier and Type | Class and Description |
|---|---|
static class |
CopyOnWriteCollectionExternalizer.CopyOnWriteArrayListExternalizer |
static class |
CopyOnWriteCollectionExternalizer.CopyOnWriteArraySetExternalizer |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends T> |
getTargetClass()
Returns the target class of the object to externalize.
|
T |
readObject(ObjectInput input)
Read an instance from the stream.
|
void |
writeObject(ObjectOutput output,
T collection)
Writes the object reference to the stream.
|
public void writeObject(ObjectOutput output, T collection) throws IOException
ExternalizerwriteObject in interface Externalizer<T extends Collection<Object>>output - the object output to write tocollection - the object reference to writeIOException - if an I/O error occurspublic T readObject(ObjectInput input) throws IOException, ClassNotFoundException
ExternalizerExternalizer.writeObject(ObjectOutput, Object) method. Implementations are free
to create instances of the object read from the stream in any way that they
feel like. This could be via constructor, factory or reflection.readObject in interface Externalizer<T extends Collection<Object>>input - the object input from which to readIOException - if an I/O error occursClassNotFoundException - if a class could not be foundpublic Class<? extends T> getTargetClass()
ExternalizergetTargetClass in interface Externalizer<T extends Collection<Object>>Copyright © 2023 JBoss by Red Hat. All rights reserved.