public class SortedSetExternalizer<T extends SortedSet<Object>> extends Object implements Externalizer<T>
SortedSet.
Requires additional serialization of the comparator.| Constructor and Description |
|---|
SortedSetExternalizer(Class<?> targetClass,
Function<Comparator<? super Object>,T> factory) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getTargetClass() |
T |
readObject(ObjectInput input) |
void |
writeObject(ObjectOutput output,
T set) |
public SortedSetExternalizer(Class<?> targetClass, Function<Comparator<? super Object>,T> factory)
public void writeObject(ObjectOutput output, T set) throws IOException
writeObject in interface Externalizer<T extends SortedSet<Object>>IOExceptionpublic T readObject(ObjectInput input) throws IOException, ClassNotFoundException
readObject in interface Externalizer<T extends SortedSet<Object>>IOExceptionClassNotFoundExceptionpublic Class<T> getTargetClass()
getTargetClass in interface Externalizer<T extends SortedSet<Object>>Copyright © 2019 JBoss by Red Hat. All rights reserved.