Class Utils.DurationTypeAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<java.time.Duration>
-
- org.opennms.netmgt.telemetry.shell.Utils.DurationTypeAdapter
-
- Enclosing class:
- Utils
public static class Utils.DurationTypeAdapter extends com.google.gson.TypeAdapter<java.time.Duration>
-
-
Constructor Summary
Constructors Constructor Description DurationTypeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Duration
read(com.google.gson.stream.JsonReader in)
void
write(com.google.gson.stream.JsonWriter out, java.time.Duration value)
-
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter out, java.time.Duration value) throws IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<java.time.Duration>
- Throws:
IOException
-
read
public java.time.Duration read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<java.time.Duration>
- Throws:
IOException
-
-