MCPcopy Create free account
hub / github.com/antlr/codebuff / equals

Method equals

output/java_guava/1.4.13/Predicates.java:707–718  ·  view source on GitHub ↗
(@Nullable Object obj)

Source from the content-addressed store, hash-verified

705 }
706
707 @Override
708 public boolean equals(@Nullable Object obj) {
709 if (obj instanceof ContainsPatternPredicate) {
710 ContainsPatternPredicate that = (ContainsPatternPredicate) obj;
711
712 // Pattern uses Object (identity) equality, so we have to reach
713 // inside to compare individual fields.
714 return Objects.equal(pattern.pattern(), that.pattern.pattern())
715&& pattern.flags() == that.pattern.flags();
716 }
717 return false;
718 }
719
720 @Override
721 public String toString() {

Callers

nothing calls this directly

Calls 1

equalMethod · 0.95

Tested by

no test coverage detected