public class TreeSetConverter extends CollectionConverter
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Object |
constantValue |
private static java.lang.reflect.Field |
sortedMapField |
private TreeMapConverter |
treeMapConverter |
| Constructor and Description |
|---|
TreeSetConverter(Mapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
marshal(java.lang.Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
Convert an object to textual data.
|
private java.lang.Object |
readResolve() |
java.lang.Object |
unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context)
Convert textual data back into an object.
|
addCurrentElementToCollection, canConvert, createCollection, populateCollection, populateCollectionmapper, readItem, writeItemprivate transient TreeMapConverter treeMapConverter
private static final java.lang.reflect.Field sortedMapField
private static final java.lang.Object constantValue
public TreeSetConverter(Mapper mapper)
public void marshal(java.lang.Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
Convertermarshal in interface Convertermarshal in class CollectionConvertersource - The object to be marshalled.writer - A stream to write to.context - A context that allows nested objects to be processed by XStream.public java.lang.Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
Converterunmarshal in interface Converterunmarshal in class CollectionConverterreader - The stream to read the text from.private java.lang.Object readResolve()