-
- All Implemented Interfaces:
-
kotlin.collections.Map,kotlin.collections.MutableMap,org.json.simple.JSONAware,org.json.simple.JSONStreamAware
public final class OrderedJsonObject implements Map<Any, Any>, JSONAware, JSONStreamAware
Functions just like JSONObject, but preserves the order in which keys were added (which is useful for things like stats where we want to group similar values and preserve the pipeline stats order).
-
-
Constructor Summary
Constructors Constructor Description OrderedJsonObject()
-
Method Summary
Modifier and Type Method Description Set<Entry.Map<Object, Object>>getEntries()Set<Object>getKeys()IntegergetSize()Collection<Object>getValues()StringtoJSONString()UnitwriteJSONString(Writer writer)-
Methods inherited from class org.jitsi.utils.OrderedJsonObject
clear, compute, computeIfAbsent, computeIfPresent, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll -
Methods inherited from class kotlin.collections.MutableMap
containsKey, containsValue, forEach, get, getOrDefault, isEmpty -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getEntries
Set<Entry.Map<Object, Object>> getEntries()
-
getValues
Collection<Object> getValues()
-
toJSONString
String toJSONString()
-
writeJSONString
Unit writeJSONString(Writer writer)
-
-
-
-