9package org.dartlang.analysis.server.protocol;
11import java.util.Arrays;
14import com.google.common.collect.Lists;
15import com.google.dart.server.utilities.general.JsonUtilities;
16import com.google.dart.server.utilities.general.ObjectUtilities;
17import com.google.gson.JsonArray;
18import com.google.gson.JsonElement;
19import com.google.gson.JsonObject;
20import com.google.gson.JsonPrimitive;
21import org.apache.commons.lang3.builder.HashCodeBuilder;
22import java.util.ArrayList;
23import java.util.Iterator;
24import org.apache.commons.lang3.StringUtils;
35@SuppressWarnings(
"unused")
42 private final String
type;
63 ObjectUtilities.equals(other.content,
content);
69 String
type = jsonObject.get(
"type").getAsString();
70 String
content = jsonObject.get(
"content").getAsString();
75 if (jsonArray ==
null) {
78 ArrayList<AddContentOverlay> list =
new ArrayList<AddContentOverlay>(jsonArray.size());
79 Iterator<JsonElement> iterator = jsonArray.iterator();
80 while (iterator.hasNext()) {
81 list.add(fromJson(iterator.next().getAsJsonObject()));
99 HashCodeBuilder
builder =
new HashCodeBuilder();
106 JsonObject jsonObject =
new JsonObject();
107 jsonObject.addProperty(
"type",
type);
108 jsonObject.addProperty(
"content",
content);
114 StringBuilder
builder =
new StringBuilder();
AddContentOverlay(String content)
static AddContentOverlay fromJson(JsonObject jsonObject)
static List< AddContentOverlay > fromJsonArray(JsonArray jsonArray)
boolean equals(Object obj)
union flutter::testing::@2836::KeyboardChange::@76 content