public class CopyOnWriteCollectionExternalizer<T extends Collection<Object>> extends Object implements Externalizer<T>
Collection.| Constructor and Description |
|---|
CopyOnWriteCollectionExternalizer(Class<?> targetClass,
Function<Collection<Object>,T> factory) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getTargetClass() |
T |
readObject(ObjectInput input) |
void |
writeObject(ObjectOutput output,
T collection) |
public CopyOnWriteCollectionExternalizer(Class<?> targetClass, Function<Collection<Object>,T> factory)
public void writeObject(ObjectOutput output, T collection) throws IOException
writeObject in interface Externalizer<T extends Collection<Object>>IOExceptionpublic T readObject(ObjectInput input) throws IOException, ClassNotFoundException
readObject in interface Externalizer<T extends Collection<Object>>IOExceptionClassNotFoundExceptionpublic Class<T> getTargetClass()
getTargetClass in interface Externalizer<T extends Collection<Object>>Copyright © 2020 JBoss by Red Hat. All rights reserved.