static bool subListContains(L l, int startIndex, int endIndex, A a) {
if (l == null) false;
int n = l.size();
startIndex = Math.max(0, startIndex);
endIndex = Math.min(n, endIndex);
for (int i = startIndex; i < endIndex; i++)
if (eq(a, l.get(i)))
true;
false;
}