Searched refs:rotate (Results 1 - 3 of 3) sorted by relevance
/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | CollectionsTest.java | 1085 * java.util.Collections#rotate(java.util.List, int) 1088 // Test for method rotate(java.util.List, int) 1091 Collections.rotate(null, 0); 1112 // rotate with positive distance 1113 Collections.rotate(list, 7); 1114 assertEquals("Test1: rotate modified the " + type 1117 // rotate with negative distance 1118 Collections.rotate(list, -2); 1119 assertEquals("Test2: rotate modified the " + type 1122 // rotate sublis [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | OldCollectionsTest.java | 114 * java.util.Collections#rotate(java.util.List, int) 118 Collections.rotate(new ArrayList<Object>(), 25); 128 Collections.rotate(list, Integer.MIN_VALUE);
|
/libcore/luni/src/main/java/java/util/ |
H A D | Collections.java | 1956 * calling rotate(list, 3) or rotate(list, -7) would modify the list to look 1963 * integer. Negative values rotate the list backwards. 1966 public static void rotate(List<?> lst, int dist) { method in class:Collections 1970 // Can't sensibly rotate an empty collection
|
Completed in 41 milliseconds