Class JsonParser.Typed<T>
java.lang.Object
com.google.gson.TypeAdapter<T>
net.buildtheearth.terraminusminus.dataset.osm.JsonParser<T>
net.buildtheearth.terraminusminus.dataset.osm.JsonParser.Typed<T>
- All Implemented Interfaces:
BiFunction<String,,com.google.gson.stream.JsonReader, T> net.daporkchop.lib.common.function.io.IOBiFunction<String,com.google.gson.stream.JsonReader, T>
- Direct Known Subclasses:
DrawFunctionParser,DValueParser,LineParser,MatchParser,PolygonConvert.Parser,PolygonParser
- Enclosing class:
JsonParser<T>
Parses a single value with a named type.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.buildtheearth.terraminusminus.dataset.osm.JsonParser
JsonParser.Typed<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyThrowing(String type, com.google.gson.stream.JsonReader in) read(com.google.gson.stream.JsonReader in) Methods inherited from class net.buildtheearth.terraminusminus.dataset.osm.JsonParser
readList, readTypedList, readTypedList, writeMethods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTreeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface net.daporkchop.lib.common.function.io.IOBiFunction
apply
-
Field Details
-
name
-
types
-
-
Constructor Details
-
Typed
-
-
Method Details
-
read
- Specified by:
readin classcom.google.gson.TypeAdapter<T>- Throws:
IOException
-
applyThrowing
- Specified by:
applyThrowingin interfacenet.daporkchop.lib.common.function.io.IOBiFunction<String,com.google.gson.stream.JsonReader, T> - Throws:
IOException
-