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;
31@SuppressWarnings(
"unused")
68 int offset = jsonObject.get(
"offset").getAsInt();
69 int length = jsonObject.get(
"length").getAsInt();
74 if (jsonArray ==
null) {
77 ArrayList<ImplementedMember> list =
new ArrayList<ImplementedMember>(jsonArray.size());
78 Iterator<JsonElement> iterator = jsonArray.iterator();
79 while (iterator.hasNext()) {
80 list.add(fromJson(iterator.next().getAsJsonObject()));
101 HashCodeBuilder
builder =
new HashCodeBuilder();
108 JsonObject jsonObject =
new JsonObject();
109 jsonObject.addProperty(
"offset",
offset);
110 jsonObject.addProperty(
"length",
length);
116 StringBuilder
builder =
new StringBuilder();
ImplementedMember(int offset, int length)
static ImplementedMember fromJson(JsonObject jsonObject)
boolean equals(Object obj)
static List< ImplementedMember > fromJsonArray(JsonArray jsonArray)