AMF3 Dictionary weakKeys attribute to String

This commit is contained in:
Jindra Petřík
2016-07-17 15:52:55 +02:00
parent f7b3d502cb
commit 6e21a941cb
2 changed files with 5 additions and 0 deletions
@@ -218,6 +218,7 @@ public class AMF3Tools {
ret.append("{\r\n");
ret.append(indent(level + 1)).append("\"type\": \"Dictionary\",\r\n");
ret.append(addId);
ret.append(indent(level + 1)).append("\"weakKeys\": " + dt.hasWeakKeys() + ",\r\n");
ret.append(indent(level + 1)).append("\"value\": {\r\n");
for (int i = 0; i < dt.getPairs().size(); i++) {
Pair<Object, Object> pair = dt.getPairs().get(i);
@@ -35,4 +35,8 @@ public class DictionaryType implements WithSubValues {
return AMF3Tools.amfToString(this);
}
public boolean hasWeakKeys() {
return weakKeys;
}
}