MCPcopy Index your code
hub / github.com/apache/groovy / hashCode

Method hashCode

src/main/java/org/codehaus/groovy/ast/ClassNode.java:1756–1759  ·  view source on GitHub ↗

Returns the hash code for this ClassNode. The hash code is based on the redirect's hash code if a redirect exists, or the text representation's hash code if this is a primary or array ClassNode. This ensures that equal ClassNodes (by #equals(Object)) have equal hash codes, maintainin

()

Source from the content-addressed store, hash-verified

1754 * @see #equals(Object)
1755 */
1756 @Override
1757 public int hashCode() {
1758 return (redirect != null ? redirect.hashCode() : getText().hashCode());
1759 }
1760
1761 /**
1762 * Returns a string representation of this ClassNode for debugging and display purposes.

Callers 1

updateHashMethod · 0.45

Calls 1

getTextMethod · 0.95

Tested by

no test coverage detected