Class CollectionAdapter

java.lang.Object
net.thucydides.core.reports.json.gson.CollectionAdapter
All Implemented Interfaces:
com.google.gson.JsonSerializer<java.util.Collection<?>>

public class CollectionAdapter
extends java.lang.Object
implements com.google.gson.JsonSerializer<java.util.Collection<?>>
  • Constructor Summary

    Constructors 
    Constructor Description
    CollectionAdapter()  
  • Method Summary

    Modifier and Type Method Description
    com.google.gson.JsonElement serialize​(java.util.Collection<?> src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CollectionAdapter

      public CollectionAdapter()
  • Method Details

    • serialize

      public com.google.gson.JsonElement serialize​(java.util.Collection<?> src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<java.util.Collection<?>>