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;
32@SuppressWarnings(
"unused")
43 private final String label;
57 ObjectUtilities.
equals(other.label, label);
63 String label = jsonObject.get(
"label").getAsString();
68 if (jsonArray ==
null) {
71 ArrayList<MessageAction> list =
new ArrayList<MessageAction>(jsonArray.size());
72 Iterator<JsonElement> iterator = jsonArray.iterator();
73 while (iterator.hasNext()) {
74 list.add(fromJson(iterator.next().getAsJsonObject()));
89 HashCodeBuilder
builder =
new HashCodeBuilder();
95 JsonObject jsonObject =
new JsonObject();
96 jsonObject.addProperty(
"label", label);
102 StringBuilder
builder =
new StringBuilder();
boolean equals(Object obj)
MessageAction(String label)
static List< MessageAction > fromJsonArray(JsonArray jsonArray)
static MessageAction fromJson(JsonObject jsonObject)