Class PathTypeAdapter

java.lang.Object
com.google.gson.TypeAdapter<Path>
eu.cloudnetservice.driver.impl.document.gson.PathTypeAdapter

final class PathTypeAdapter extends com.google.gson.TypeAdapter<Path>
A type adapter that can serialize and deserialize paths of any type into/from json.
Since:
4.0
  • Field Details

    • stringTypeAdapter

      private final com.google.gson.TypeAdapter<String> stringTypeAdapter
  • Constructor Details

    • PathTypeAdapter

      public PathTypeAdapter(@NonNull @NonNull com.google.gson.Gson gsonInstance)
      Constructs a new instance of the path type adapter.
      Parameters:
      gsonInstance - the gson instance this type adapter instance got bound to.
      Throws:
      NullPointerException - if the given gson instance is null.
  • Method Details