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;
29@SuppressWarnings(
"unused")
39 private String newName;
45 this.newName = newName;
53 ObjectUtilities.
equals(other.newName, newName);
59 String newName = jsonObject.get(
"newName").getAsString();
64 if (jsonArray ==
null) {
67 ArrayList<RenameOptions> list =
new ArrayList<RenameOptions>(jsonArray.size());
68 Iterator<JsonElement> iterator = jsonArray.iterator();
69 while (iterator.hasNext()) {
70 list.add(fromJson(iterator.next().getAsJsonObject()));
84 HashCodeBuilder
builder =
new HashCodeBuilder();
93 this.newName = newName;
97 JsonObject jsonObject =
new JsonObject();
98 jsonObject.addProperty(
"newName", newName);
104 StringBuilder
builder =
new StringBuilder();
RenameOptions(String newName)
static List< RenameOptions > fromJsonArray(JsonArray jsonArray)
static RenameOptions fromJson(JsonObject jsonObject)
void setNewName(String newName)
boolean equals(Object obj)