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

Method equal

output/java_guava/1.4.13/Objects.java:57–60  ·  view source on GitHub ↗

Determines whether two possibly-null objects are equal. Returns: true if a and b are both null. true if a and b are both non-null and they are equal according to Object#equals(Object). false in all other situations

(@Nullable Object a, @Nullable Object b)

Source from the content-addressed store, hash-verified

55
56
57 public static boolean equal(@Nullable Object a, @Nullable Object b) {
58 return a == b || (a != null
59 && a.equals(b));
60 }
61
62 /**
63 * Generates a hash code for multiple values. The hash code is generated by calling

Callers 8

putInBothMapsMethod · 0.95
setValueMethod · 0.95
equalsMethod · 0.95
equalsMethod · 0.95
equalsMethod · 0.95
equalsMethod · 0.95
equalsMethod · 0.95
equalsMethod · 0.95

Calls 1

equalsMethod · 0.65

Tested by

no test coverage detected