Package com.dropbox.core.json
Class JsonReader.FieldMapping
- java.lang.Object
-
- com.dropbox.core.json.JsonReader.FieldMapping
-
- Enclosing class:
- JsonReader<T>
public static final class JsonReader.FieldMapping extends java.lang.Object
If you're implementing aJsonReader
for a JSON object, you can use this to map field names to a number you canswitch
on to efficiently locate assign a field.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonReader.FieldMapping.Builder
-
Field Summary
Fields Modifier and Type Field Description java.util.HashMap<java.lang.String,java.lang.Integer>
fields
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
get(java.lang.String fieldName)
-