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

Method contains

output/java_guava/1.4.18/CartesianList.java:99–116  ·  view source on GitHub ↗
(@Nullable Object o)

Source from the content-addressed store, hash-verified

97 }
98
99 @Override
100 public boolean contains(@Nullable Object o) {
101 if (!(o instanceof List)) {
102 return false;
103 }
104 List<?> list = (List<?>) o;
105 if (list.size() != axes.size()) {
106 return false;
107 }
108 ListIterator<?> itr = list.listIterator();
109 while (itr.hasNext()) {
110 int index = itr.nextIndex();
111 if (!axes.get(index).contains(itr.next())) {
112 return false;
113 }
114 }
115 return true;
116 }
117}

Callers

nothing calls this directly

Calls 7

sizeMethod · 0.65
containsMethod · 0.65
getMethod · 0.65
nextMethod · 0.65
listIteratorMethod · 0.45
hasNextMethod · 0.45
nextIndexMethod · 0.45

Tested by

no test coverage detected