public class CollectionExternalizer<T extends Collection<Object>> extends Object implements Externalizer<T>
Collection.| Constructor and Description |
|---|
CollectionExternalizer(Class<?> targetClass,
IntFunction<T> factory) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getTargetClass() |
T |
readObject(ObjectInput input) |
void |
writeObject(ObjectOutput output,
T collection) |
public CollectionExternalizer(Class<?> targetClass, IntFunction<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 © 2018 JBoss by Red Hat. All rights reserved.