- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 77 for lastIndexOf (0.12 sec)
-
guava-tests/test/com/google/common/primitives/BytesTest.java
assertThat(Bytes.lastIndexOf(EMPTY, (byte) 1)).isEqualTo(-1); assertThat(Bytes.lastIndexOf(ARRAY1, (byte) 2)).isEqualTo(-1); assertThat(Bytes.lastIndexOf(ARRAY234, (byte) 1)).isEqualTo(-1); assertThat(Bytes.lastIndexOf(new byte[] {(byte) -1}, (byte) -1)).isEqualTo(0); assertThat(Bytes.lastIndexOf(ARRAY234, (byte) 2)).isEqualTo(0); assertThat(Bytes.lastIndexOf(ARRAY234, (byte) 3)).isEqualTo(1);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 17.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BytesTest.java
assertThat(Bytes.lastIndexOf(EMPTY, (byte) 1)).isEqualTo(-1); assertThat(Bytes.lastIndexOf(ARRAY1, (byte) 2)).isEqualTo(-1); assertThat(Bytes.lastIndexOf(ARRAY234, (byte) 1)).isEqualTo(-1); assertThat(Bytes.lastIndexOf(new byte[] {(byte) -1}, (byte) -1)).isEqualTo(0); assertThat(Bytes.lastIndexOf(ARRAY234, (byte) 2)).isEqualTo(0); assertThat(Bytes.lastIndexOf(ARRAY234, (byte) 3)).isEqualTo(1);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 17.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
assertThat(iia.lastIndexOf(1)).isEqualTo(1); assertThat(iia.lastIndexOf(8)).isEqualTo(5); assertThat(iia.lastIndexOf(4)).isEqualTo(-1); assertThat(ImmutableDoubleArray.of(13).lastIndexOf(13)).isEqualTo(0); assertThat(ImmutableDoubleArray.of().lastIndexOf(21)).isEqualTo(-1); assertThat(iia.subArray(1, 5).lastIndexOf(1)).isEqualTo(0); } public void testContains() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 21.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
} public void testLastIndexOf() { assertThat(Doubles.lastIndexOf(EMPTY, (double) 1)).isEqualTo(-1); assertThat(Doubles.lastIndexOf(ARRAY1, (double) 2)).isEqualTo(-1); assertThat(Doubles.lastIndexOf(ARRAY234, (double) 1)).isEqualTo(-1); assertThat(Doubles.lastIndexOf(new double[] {(double) -1}, (double) -1)).isEqualTo(0); assertThat(Doubles.lastIndexOf(ARRAY234, (double) 2)).isEqualTo(0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 32.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
assertThat(Chars.lastIndexOf(EMPTY, (char) 1)).isEqualTo(-1); assertThat(Chars.lastIndexOf(ARRAY1, (char) 2)).isEqualTo(-1); assertThat(Chars.lastIndexOf(ARRAY234, (char) 1)).isEqualTo(-1); assertThat(Chars.lastIndexOf(new char[] {(char) -1}, (char) -1)).isEqualTo(0); assertThat(Chars.lastIndexOf(ARRAY234, (char) 2)).isEqualTo(0); assertThat(Chars.lastIndexOf(ARRAY234, (char) 3)).isEqualTo(1);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 25.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java
assertEquals(size - 1, copy.lastIndexOf(list.get(size - 1))); assertEquals(size - 2, head.lastIndexOf(list.get(size - 2))); assertEquals(size - 2, tail.lastIndexOf(list.get(size - 1))); // The following assumes all elements are distinct. assertEquals(0, copy.lastIndexOf(list.get(0))); assertEquals(0, head.lastIndexOf(list.get(0))); assertEquals(0, tail.lastIndexOf(list.get(1)));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 13.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java
assertEquals(size - 1, copy.lastIndexOf(list.get(size - 1))); assertEquals(size - 2, head.lastIndexOf(list.get(size - 2))); assertEquals(size - 2, tail.lastIndexOf(list.get(size - 1))); // The following assumes all elements are distinct. assertEquals(0, copy.lastIndexOf(list.get(0))); assertEquals(0, head.lastIndexOf(list.get(0))); assertEquals(0, tail.lastIndexOf(list.get(1)));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 13.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/BooleansTest.java
assertThat(Booleans.lastIndexOf(EMPTY, false)).isEqualTo(-1); assertThat(Booleans.lastIndexOf(ARRAY_FALSE, true)).isEqualTo(-1); assertThat(Booleans.lastIndexOf(ARRAY_FALSE_FALSE, true)).isEqualTo(-1); assertThat(Booleans.lastIndexOf(ARRAY_FALSE, false)).isEqualTo(0); assertThat(Booleans.lastIndexOf(ARRAY_FALSE_TRUE, false)).isEqualTo(0); assertThat(Booleans.lastIndexOf(ARRAY_FALSE_TRUE, true)).isEqualTo(1);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 24.8K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Booleans.java
* such index exists. */ public static int lastIndexOf(boolean[] array, boolean target) { return lastIndexOf(array, target, 0, array.length); } // TODO(kevinb): consider making this public private static int lastIndexOf(boolean[] array, boolean target, int start, int end) { for (int i = end - 1; i >= start; i--) { if (array[i] == target) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 20.4K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Booleans.java
* such index exists. */ public static int lastIndexOf(boolean[] array, boolean target) { return lastIndexOf(array, target, 0, array.length); } // TODO(kevinb): consider making this public private static int lastIndexOf(boolean[] array, boolean target, int start, int end) { for (int i = end - 1; i >= start; i--) { if (array[i] == target) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 20.4K bytes - Viewed (0)