| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package android.view.inputmethod; |
| 18 |
|
| 19 |
import android.annotation.NonNull; |
| 20 |
import android.annotation.Nullable; |
| 21 |
import android.annotation.TestApi; |
| 22 |
import android.os.Parcelable; |
| 23 |
|
| 24 |
import com.android.internal.util.DataClass; |
| 25 |
|
| 26 |
import java.util.ArrayList; |
| 27 |
import java.util.List; |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
@DataClass(genEqualsHashCode = true, genToString = true, genHiddenConstructor = true) |
| 34 |
public final class InlineSuggestionsResponse implements Parcelable { |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
@NonNull |
| 46 |
private final List<InlineSuggestion> mInlineSuggestions; |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
@TestApi |
| 54 |
@NonNull |
| 55 |
public static InlineSuggestionsResponse newInlineSuggestionsResponse( |
| 56 |
@NonNull List<InlineSuggestion> inlineSuggestions) { |
| 57 |
return new InlineSuggestionsResponse(inlineSuggestions); |
| 58 |
} |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
@DataClass.Generated.Member |
| 90 |
public InlineSuggestionsResponse( |
| 91 |
@NonNull List<InlineSuggestion> inlineSuggestions) { |
| 92 |
this.mInlineSuggestions = inlineSuggestions; |
| 93 |
com.android.internal.util.AnnotationValidations.validate( |
| 94 |
NonNull.class, null, mInlineSuggestions); |
| 95 |
|
| 96 |
|
| 97 |
} |
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
@DataClass.Generated.Member |
| 110 |
public @NonNull List<InlineSuggestion> getInlineSuggestions() { |
| 111 |
return mInlineSuggestions; |
| 112 |
} |
| 113 |
|
| 114 |
@Override |
| 115 |
@DataClass.Generated.Member |
| 116 |
public String toString() { |
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
return "InlineSuggestionsResponse { " + |
| 121 |
"inlineSuggestions = " + mInlineSuggestions + |
| 122 |
" }"; |
| 123 |
} |
| 124 |
|
| 125 |
@Override |
| 126 |
@DataClass.Generated.Member |
| 127 |
public boolean equals(@Nullable Object o) { |
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
if (this == o) return true; |
| 133 |
if (o == null || getClass() != o.getClass()) return false; |
| 134 |
@SuppressWarnings("unchecked") |
| 135 |
InlineSuggestionsResponse that = (InlineSuggestionsResponse) o; |
| 136 |
|
| 137 |
return true |
| 138 |
&& java.util.Objects.equals(mInlineSuggestions, that.mInlineSuggestions); |
| 139 |
} |
| 140 |
|
| 141 |
@Override |
| 142 |
@DataClass.Generated.Member |
| 143 |
public int hashCode() { |
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
int _hash = 1; |
| 148 |
_hash = 31 * _hash + java.util.Objects.hashCode(mInlineSuggestions); |
| 149 |
return _hash; |
| 150 |
} |
| 151 |
|
| 152 |
@Override |
| 153 |
@DataClass.Generated.Member |
| 154 |
public void writeToParcel(@NonNull android.os.Parcel dest, int flags) { |
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
dest.writeParcelableList(mInlineSuggestions, flags); |
| 159 |
} |
| 160 |
|
| 161 |
@Override |
| 162 |
@DataClass.Generated.Member |
| 163 |
public int describeContents() { return 0; } |
| 164 |
|
| 165 |
|
| 166 |
@SuppressWarnings({"unchecked", "RedundantCast"}) |
| 167 |
@DataClass.Generated.Member |
| 168 |
InlineSuggestionsResponse(@NonNull android.os.Parcel in) { |
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
List<InlineSuggestion> inlineSuggestions = new ArrayList<>(); |
| 173 |
in.readParcelableList(inlineSuggestions, InlineSuggestion.class.getClassLoader(), android.view.inputmethod.InlineSuggestion.class); |
| 174 |
|
| 175 |
this.mInlineSuggestions = inlineSuggestions; |
| 176 |
com.android.internal.util.AnnotationValidations.validate( |
| 177 |
NonNull.class, null, mInlineSuggestions); |
| 178 |
|
| 179 |
|
| 180 |
} |
| 181 |
|
| 182 |
@DataClass.Generated.Member |
| 183 |
public static final @NonNull Parcelable.Creator<InlineSuggestionsResponse> CREATOR |
| 184 |
= new Parcelable.Creator<InlineSuggestionsResponse>() { |
| 185 |
@Override |
| 186 |
public InlineSuggestionsResponse[] newArray(int size) { |
| 187 |
return new InlineSuggestionsResponse[size]; |
| 188 |
} |
| 189 |
|
| 190 |
@Override |
| 191 |
public InlineSuggestionsResponse createFromParcel(@NonNull android.os.Parcel in) { |
| 192 |
return new InlineSuggestionsResponse(in); |
| 193 |
} |
| 194 |
}; |
| 195 |
|
| 196 |
@DataClass.Generated( |
| 197 |
time = 1595891876037L, |
| 198 |
codegenVersion = "1.0.15", |
| 199 |
sourceFile = "frameworks/base/core/java/android/view/inputmethod/InlineSuggestionsResponse.java", |
| 200 |
inputSignatures = "private final @android.annotation.NonNull java.util.List<android.view.inputmethod.InlineSuggestion> mInlineSuggestions\npublic static @android.annotation.TestApi @android.annotation.NonNull android.view.inputmethod.InlineSuggestionsResponse newInlineSuggestionsResponse(java.util.List<android.view.inputmethod.InlineSuggestion>)\nclass InlineSuggestionsResponse extends java.lang.Object implements [android.os.Parcelable]\n@com.android.internal.util.DataClass(genEqualsHashCode=true, genToString=true, genHiddenConstructor=true)") |
| 201 |
@Deprecated |
| 202 |
private void __metadata() {} |
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
} |