- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 367 for toArray (0.04 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java
public void testToArray_noArgs() { Object[] array = collection.toArray(); expectArrayContentsAnyOrder(createSamplesArray(), array); } /** * {@link Collection#toArray(Object[])} says: "Note that {@code toArray(new Object[0])} is * identical in function to {@code toArray()}." * * <p>For maximum effect, the collection under test should be created from an element array of a
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 8.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java
public void testToArray_noArg() { Object[] actual = getList().toArray(); assertArrayEquals("toArray() order should match list", createOrderedArray(), actual); } @CollectionSize.Require(absent = ZERO) public void testToArray_tooSmall() { Object[] actual = getList().toArray(new Object[0]); assertArrayEquals("toArray(tooSmall) order should match list", createOrderedArray(), actual); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/impl/CustomUrlFilterImplTest.java
assertEquals("http://example.com/.*", domainFilter.cachedExcludeSet.toArray()[0]); domainFilter.processUrl("https://test.com"); assertEquals(2, domainFilter.cachedIncludeSet.size()); assertEquals(2, domainFilter.cachedExcludeSet.size()); assertEquals("http://test.com/.*", domainFilter.cachedIncludeSet.toArray()[1]);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 4.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java
item.text = text; item.readings = readings.toArray(new String[readings.size()][]); item.fields = fields.toArray(new String[fields.size()]); item.docFreq = docFreq; item.queryFreq = queryFreq; item.userBoost = userBoost; item.tags = tags.toArray(new String[tags.size()]); item.roles = roles.toArray(new String[roles.size()]);
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 20.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/stream/StreamUtilTest.java
Object[] array = s.toArray(); for (int i = 0; i < 2; i++) { assertEquals(values[i], array[i]); } }); } public void test_ofNull() { assertEquals(0, (int) StreamUtil.stream().get(s -> s.toArray().length)); Object[] o = {}; assertEquals(0, (int) StreamUtil.stream(o).get(s -> s.toArray().length));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/BytesTest.java
assertThat(Bytes.toArray(bytes)).isEqualTo(array); assertThat(Bytes.toArray(shorts)).isEqualTo(array); assertThat(Bytes.toArray(ints)).isEqualTo(array); assertThat(Bytes.toArray(floats)).isEqualTo(array); assertThat(Bytes.toArray(longs)).isEqualTo(array); assertThat(Bytes.toArray(doubles)).isEqualTo(array); }
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/collect/SynchronizedDequeTest.java
delegate.clear(); } @Override public Object[] toArray() { assertTrue(Thread.holdsLock(mutex)); return delegate.toArray(); } @Override public <T> T[] toArray(T[] array) { assertTrue(Thread.holdsLock(mutex)); return delegate.toArray(array); } @Override public void addFirst(E e) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 7.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParser.java
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 13.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java
public void testToArray_noArg() { Object[] actual = getList().toArray(); assertArrayEquals("toArray() order should match list", createOrderedArray(), actual); } @CollectionSize.Require(absent = ZERO) public void testToArray_tooSmall() { Object[] actual = getList().toArray(new Object[0]); assertArrayEquals("toArray(tooSmall) order should match list", createOrderedArray(), actual); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
} /* * Note: the superclass toArray() methods assume that size() gives a correct * answer, which ours does not. */ @Override public Object[] toArray() { return snapshot().toArray(); } @Override @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations public <T extends @Nullable Object> T[] toArray(T[] array) { return snapshot().toArray(array);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 21.1K bytes - Viewed (0)