Searched refs:sublist (Results 1 - 2 of 2) sorted by relevance

/libcore/luni/src/main/java/java/util/
H A DCollections.java2011 * Searches the {@code list} for {@code sublist} and returns the beginning
2014 * -1 is returned if the {@code sublist} does not exist in {@code list}.
2017 * the List to search {@code sublist} in.
2018 * @param sublist
2020 * @return the beginning index of the first occurrence of {@code sublist} in
2023 public static int indexOfSubList(List<?> list, List<?> sublist) { argument
2025 int sublistSize = sublist.size();
2035 // find the first element of sublist in the list to get a head start
2036 Object firstObj = sublist.get(0);
2048 // iterate through the elements in sublist t
2090 lastIndexOfSubList(List<?> list, List<?> sublist) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DCollectionsTest.java959 // rotate sublist with negative distance
965 // rotate sublist with positive distance
1124 List sublist = new ArrayList();
1126 sublist.add(new Character(chars[i]));
1132 .indexOfSubList(list, sublist));
1136 sublist));

Completed in 32 milliseconds