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

Method equal

corpus/java/training/guava/base/Objects.java:56–58  ·  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

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

Callers 15

equalsMethod · 0.95
putInBothMapsMethod · 0.95
setValueMethod · 0.95
equalsMethod · 0.95
removeMethod · 0.95
containsMethod · 0.95
removeMethod · 0.95
standardRemoveMethod · 0.95
elementsEqualMethod · 0.95
standardEqualsMethod · 0.95
standardCountMethod · 0.95
countMethod · 0.95

Calls 1

equalsMethod · 0.65

Tested by

no test coverage detected