MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / contains

Method contains

src/main/java/com/amazon/ion/IonSequence.java:263–263  ·  view source on GitHub ↗

Determines whether this sequence contains the given instance. Due to the reference-equality-based semantics of Ion sequences, this method does not use Object#equals as specified by the contract of java.util.Collection. Instead it uses reference equality (== operator) t

(Object o)

Source from the content-addressed store, hash-verified

261 * @throws ClassCastException if {@code o} is not an {@link IonValue}.
262 */
263 public boolean contains(Object o);
264
265
266 /**

Callers 15

testContainsMethod · 0.95
retainAllMethod · 0.95
testAddAfterCloneMethod · 0.65
sourceIsTextMethod · 0.65
sourceIsBinaryMethod · 0.65
valuesWithMethod · 0.65
valuesWithoutMethod · 0.65
testMalformedNameMethod · 0.65

Implementers 1

IonSequenceLitesrc/main/java/com/amazon/ion/impl/lite

Calls

no outgoing calls

Tested by 15

testContainsMethod · 0.76
retainAllMethod · 0.76
testAddAfterCloneMethod · 0.52
sourceIsTextMethod · 0.52
sourceIsBinaryMethod · 0.52
valuesWithMethod · 0.52
valuesWithoutMethod · 0.52
testMalformedNameMethod · 0.52