MCPcopy Create free account
hub / github.com/ReadyTalk/avian / contains

Method contains

classpath/java/util/ArrayList.java:76–83  ·  view source on GitHub ↗
(Object element)

Source from the content-addressed store, hash-verified

74 }
75
76 public boolean contains(Object element) {
77 for (int i = 0; i < size; ++i) {
78 if (equal(element, array[i])) {
79 return true;
80 }
81 }
82 return false;
83 }
84
85 public void add(int index, T element) {
86 int newSize = Math.max(size+1, index+1);

Callers

nothing calls this directly

Calls 1

equalMethod · 0.95

Tested by

no test coverage detected