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

Method hashCode

src/main/java/groovy/lang/IntRange.java:566–574  ·  view source on GitHub ↗

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

564 * {@inheritDoc}
565 */
566 @Override
567 public int hashCode(){
568 int hashCode;
569 final int from = this.getFrom();
570 final int to = this.getTo();
571
572 hashCode = ((from+to+1)*(from+to))/2+to;
573 return hashCode;
574 }
575}

Callers

nothing calls this directly

Calls 2

getFromMethod · 0.95
getToMethod · 0.95

Tested by

no test coverage detected