MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / hashCode

Method hashCode

Ports/CLDC11/src/java/util/AbstractList.java:542–551  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

540 ///
541 /// - List#hashCode()
542 @Override
543 public int hashCode() {
544 int result = 1;
545 Iterator<?> it = iterator();
546 while (it.hasNext()) {
547 Object object = it.next();
548 result = (31 * result) + (object == null ? 0 : object.hashCode());
549 }
550 return result;
551 }
552
553 /// Searches this list for the specified object and returns the index of the
554 /// first occurrence.

Callers

nothing calls this directly

Calls 4

iteratorMethod · 0.95
hashCodeMethod · 0.95
hasNextMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected