- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 949 for arrays (0.1 sec)
-
guava-tests/test/com/google/common/primitives/BooleansTest.java
List<Boolean> none = Arrays.<Boolean>asList(); assertThat(Booleans.toArray(none)).isEqualTo(EMPTY); List<Boolean> one = Arrays.asList(false); assertThat(Booleans.toArray(one)).isEqualTo(ARRAY_FALSE); boolean[] array = {false, false, true}; List<Boolean> three = Arrays.asList(false, false, true); assertThat(Booleans.toArray(three)).isEqualTo(array);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java
void setUp() throws Exception { Random rng = new Random(); for (int i = 0; i < 0x100; i++) { Integer[] array = new Integer[n]; for (int j = 0; j < n; j++) { array[j] = rng.nextInt(); } inputArrays[i] = array; } } @Benchmark int arraysSortNoComparator(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { Integer[] copy = inputArrays[i & 0xFF].clone();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/DocumentUtilTest.java
String[] array = { "a", "b", "c" }; doc.put("key", array); List<String> result = DocumentUtil.getValue(doc, "key", List.class); assertEquals(Arrays.asList("a", "b", "c"), result); } public void test_first_element_from_list() { Map<String, Object> doc = new HashMap<>(); List<String> list = Arrays.asList("first", "second", "third");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 11.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/CharsetsTest.java
byte[] b5 = "スューー".getBytes(Charsets.US_ASCII); // Assert they are all equal (using the transitive property) assertTrue(Arrays.equals(b1, b2)); assertTrue(Arrays.equals(b2, b3)); assertTrue(Arrays.equals(b3, b4)); assertTrue(Arrays.equals(b4, b5)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/KuromojiCSVUtilTest.java
actual = Arrays.asList(KuromojiCSVUtil.parse(value)); assertThat(actual, is(expected)); value = " "; expected = Arrays.asList(" "); actual = Arrays.asList(KuromojiCSVUtil.parse(value)); assertThat(actual, is(expected)); value = ""; expected = Arrays.asList(""); actual = Arrays.asList(KuromojiCSVUtil.parse(value));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 18.7K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Chars.java
* in an {@code int} */ public static char[] concat(char[]... arrays) { long length = 0; for (char[] array : arrays) { length += array.length; } char[] result = new char[checkNoOverflow(length)]; int pos = 0; for (char[] array : arrays) { System.arraycopy(array, 0, result, pos, array.length); pos += array.length; } return result; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
ByteSource source = out.asByteSource(); out.write(data); assertTrue(Arrays.equals(data, source.read())); out.reset(); assertTrue(Arrays.equals(new byte[0], source.read())); out.write(data); assertTrue(Arrays.equals(data, source.read())); out.close(); } private static boolean isAndroid() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 5.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
@Test fun responseBodyFailHttp1OverHttps() { enableTlsWithTunnel() server.protocols = Arrays.asList(Protocol.HTTP_1_1) responseBodyFail(Protocol.HTTP_1_1) } @Test fun responseBodyFailHttp2OverHttps() { platform.assumeHttp2Support() enableTlsWithTunnel() server.protocols = Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1) responseBodyFail(Protocol.HTTP_2) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 60.4K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedInts.java
* @since 23.1 */ public static void sort(int[] array, int fromIndex, int toIndex) { checkNotNull(array); checkPositionIndexes(fromIndex, toIndex, array.length); for (int i = fromIndex; i < toIndex; i++) { array[i] = flip(array[i]); } Arrays.sort(array, fromIndex, toIndex); for (int i = fromIndex; i < toIndex; i++) { array[i] = flip(array[i]); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Feb 09 16:22:33 UTC 2025 - 13.8K bytes - Viewed (0) -
guava/src/com/google/common/base/Objects.java
return java.util.Objects.equals(a, b); } /** * Generates a hash code for multiple values. The hash code is generated by calling {@link * Arrays#hashCode(Object[])}. Note that array arguments to this method, with the exception of a * single Object array, do not get any special handling; their hash codes are based on identity * and not contents. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 28 22:51:26 UTC 2025 - 3.1K bytes - Viewed (0)