Class ListMarshalling<T>

    • Constructor Detail

      • ListMarshalling

        public ListMarshalling​(Marshalling<T> itemMarshalling)
        The constructor.
        Parameters:
        itemMarshalling - the Marshalling for the items in the List.
    • Method Detail

      • writeObject

        public void writeObject​(StructuredWriter writer,
                                List<T> list)
        Specified by:
        writeObject in interface Marshaller<T>
        Parameters:
        writer - the StructuredWriter where to write the data of the given object to. Create via e.g. JsonFormat.get().writer(writer) or XmlFormat.get().writer(writer).
        list - the object to serialize or marshall. If this is an instance of MarshallableObject then this has to be the called instance itself.