MCPcopy
hub / github.com/google/gson / contains

Method contains

gson/src/main/java/com/google/gson/JsonArray.java:189–191  ·  view source on GitHub ↗

Returns true if this array contains the specified element. @return true if this array contains the specified element. @param element whose presence in this array is to be tested @since 2.3

(JsonElement element)

Source from the content-addressed store, hash-verified

187 * @since 2.3
188 */
189 public boolean contains(JsonElement element) {
190 return elements.contains(element);
191 }
192
193 /**
194 * Returns the number of elements in the array.

Calls

no outgoing calls