Class StringWrapper.StringWrapperConverter<T extends StringWrapper>

java.lang.Object
com.google.gson.TypeAdapter<T>
com.tngtech.jgiven.report.model.StringWrapper.StringWrapperConverter<T>
Direct Known Subclasses:
Tag.TagClass.JsonConverter, Tag.TagId.JsonConverter
Enclosing interface:
StringWrapper

public static class StringWrapper.StringWrapperConverter<T extends StringWrapper> extends com.google.gson.TypeAdapter<T>
  • Constructor Details

    • StringWrapperConverter

      protected StringWrapperConverter(Function<String,T> instantiator)
  • Method Details

    • write

      public void write(com.google.gson.stream.JsonWriter out, T value) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<T extends StringWrapper>
      Throws:
      IOException
    • read

      public T read(com.google.gson.stream.JsonReader in) throws IOException
      Specified by:
      read in class com.google.gson.TypeAdapter<T extends StringWrapper>
      Throws:
      IOException