Class JsonMapType
java.lang.Object
ca.spottedleaf.dataconverter.types.json.JsonMapType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final com.google.gson.JsonObject -
Constructor Summary
ConstructorsConstructorDescriptionJsonMapType(boolean compressed) JsonMapType(com.google.gson.JsonObject map, boolean compressed) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()copy()booleanbooleangetBoolean(String key) booleangetBoolean(String key, boolean dfl) bytebytebyte[]byte[]doubledoublefloatfloatgetForcedString(String key) getForcedString(String key, String dfl) getGeneric(String key) intintint[]int[]com.google.gson.JsonObjectgetJson()getListUnchecked(String key) getListUnchecked(String key, ListType dfl) longlonglong[]long[]shortshortshort[]short[]inthashCode()booleanbooleanhasKey(String key, ObjectType type) booleanisEmpty()keys()voidvoidsetBoolean(String key, boolean val) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidintsize()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.spottedleaf.dataconverter.types.MapType
getList, getList, getOrCreateList, getOrCreateMap, setGeneric
-
Field Details
-
map
protected final com.google.gson.JsonObject map -
compressed
protected final boolean compressed
-
-
Constructor Details
-
JsonMapType
public JsonMapType(boolean compressed) -
JsonMapType
public JsonMapType(com.google.gson.JsonObject map, boolean compressed)
-
-
Method Details
-
getTypeUtil
- Specified by:
getTypeUtilin interfaceMapType<String>
-
equals
-
hashCode
public int hashCode() -
toString
-
getJson
public com.google.gson.JsonObject getJson() -
size
public int size() -
isEmpty
public boolean isEmpty() -
clear
public void clear() -
keys
-
copy
-
hasKey
-
hasKey
-
remove
-
getGeneric
- Specified by:
getGenericin interfaceMapType<String>
-
getNumber
-
getNumber
-
getBoolean
- Specified by:
getBooleanin interfaceMapType<String>
-
getBoolean
- Specified by:
getBooleanin interfaceMapType<String>
-
setBoolean
- Specified by:
setBooleanin interfaceMapType<String>
-
getByte
-
getByte
-
setByte
-
getShort
-
getShort
-
setShort
-
getInt
-
getInt
-
setInt
-
getLong
-
getLong
-
setLong
-
getFloat
-
getFloat
-
setFloat
-
getDouble
-
getDouble
-
setDouble
-
getBytes
-
getBytes
-
setBytes
-
getShorts
-
getShorts
-
setShorts
-
getInts
-
getInts
-
setInts
-
getLongs
-
getLongs
-
setLongs
-
getListUnchecked
- Specified by:
getListUncheckedin interfaceMapType<String>
-
getListUnchecked
- Specified by:
getListUncheckedin interfaceMapType<String>
-
setList
-
getMap
-
getMap
-
setMap
-
getString
-
getString
-
getForcedString
- Specified by:
getForcedStringin interfaceMapType<String>
-
getForcedString
- Specified by:
getForcedStringin interfaceMapType<String>
-
setString
-