Flutter Engine
The Flutter Engine
ExtractWidgetFeedback.java
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file.
5 *
6 * This file has been automatically generated. Please do not edit it manually.
7 * To regenerate the file, use the script "pkg/analysis_server/tool/spec/generate_files".
8 */
9package org.dartlang.analysis.server.protocol;
10
11import java.util.Arrays;
12import java.util.List;
13import java.util.Map;
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;
25
26/**
27 * @coverage dart.server.generated.types
28 */
29@SuppressWarnings("unused")
31
32 public static final ExtractWidgetFeedback[] EMPTY_ARRAY = new ExtractWidgetFeedback[0];
33
34 public static final List<ExtractWidgetFeedback> EMPTY_LIST = Lists.newArrayList();
35
36 /**
37 * Constructor for {@link ExtractWidgetFeedback}.
38 */
40 }
41
42 @Override
43 public boolean equals(Object obj) {
44 if (obj instanceof ExtractWidgetFeedback) {
46 return
47 true;
48 }
49 return false;
50 }
51
52 public static ExtractWidgetFeedback fromJson(JsonObject jsonObject) {
53 return new ExtractWidgetFeedback();
54 }
55
56 public static List<ExtractWidgetFeedback> fromJsonArray(JsonArray jsonArray) {
57 if (jsonArray == null) {
58 return EMPTY_LIST;
59 }
60 ArrayList<ExtractWidgetFeedback> list = new ArrayList<ExtractWidgetFeedback>(jsonArray.size());
61 Iterator<JsonElement> iterator = jsonArray.iterator();
62 while (iterator.hasNext()) {
63 list.add(fromJson(iterator.next().getAsJsonObject()));
64 }
65 return list;
66 }
67
68 @Override
69 public int hashCode() {
70 HashCodeBuilder builder = new HashCodeBuilder();
71 return builder.toHashCode();
72 }
73
74 public JsonObject toJson() {
75 JsonObject jsonObject = new JsonObject();
76 return jsonObject;
77 }
78
79 @Override
80 public String toString() {
81 StringBuilder builder = new StringBuilder();
82 builder.append("[");
83 builder.append("]");
84 return builder.toString();
85 }
86
87}
static List< ExtractWidgetFeedback > fromJsonArray(JsonArray jsonArray)
static ExtractWidgetFeedback fromJson(JsonObject jsonObject)