- Sort Score
- Num 10 results
- Language All
Results 531 - 540 of 785 for elemLen (0.07 seconds)
-
guava/src/com/google/common/base/Preconditions.java
* is fine with that. */ /** * Ensures that {@code index} specifies a valid <i>element</i> in an array, list or string of size * {@code size}. An element index may range from zero, inclusive, to {@code size}, exclusive. * * @param index a user-supplied index identifying an element of an array, list or string * @param size the size of that array, list or stringCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 53.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java
List<E> containsNull = singletonList(null); assertTrue("addAll(n, containsNull) should return true", getList().addAll(0, containsNull)); /* * We need (E) to force interpretation of null as the single element of a * varargs array, not the array itself */ expectAdded(0, (E) null); } @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX) @CollectionFeature.Require(absent = ALLOWS_NULL_VALUES)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 6.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/LongArrayAsListTest.java
*/ protected abstract List<Long> create(Long[] elements); @Override public Long[] createArray(int length) { return new Long[length]; } /** Returns the original element list, unchanged. */ @Override public List<Long> order(List<Long> insertionOrder) { return insertionOrder; } } public static class SampleLongs extends SampleElements<Long> {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/ShortArrayAsListTest.java
*/ protected abstract List<Short> create(Short[] elements); @Override public Short[] createArray(int length) { return new Short[length]; } /** Returns the original element list, unchanged. */ @Override public List<Short> order(List<Short> insertionOrder) { return insertionOrder; } } public static class SampleShorts extends SampleElements<Short> {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/CharArrayAsListTest.java
protected abstract List<Character> create(Character[] elements); @Override public Character[] createArray(int length) { return new Character[length]; } /** Returns the original element list, unchanged. */ @Override public List<Character> order(List<Character> insertionOrder) { return insertionOrder; } } public static class SampleChars extends SampleElements<Character> {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ShortArrayAsListTest.java
*/ protected abstract List<Short> create(Short[] elements); @Override public Short[] createArray(int length) { return new Short[length]; } /** Returns the original element list, unchanged. */ @Override public List<Short> order(List<Short> insertionOrder) { return insertionOrder; } } public static class SampleShorts extends SampleElements<Short> {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ldap/LdapUserTest.java
String[] result = invokeDistinct(input); assertSame(input, result); } @Test public void test_distinct_singleElement() { // Test distinct with single element String[] input = new String[] { "element" }; String[] result = invokeDistinct(input); assertSame(input, result); } @Test public void test_distinct_noDuplicates() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 16.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java
multimap().replaceValues(k3(), values); assertGet(k3(), values); assertEquals(size + values.size(), multimap().size()); } @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE}) public void testReplaceValuesWithEmpty() { int size = multimap().size(); List<V> oldValues = new ArrayList<>(multimap().get(k0()));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Apr 12 15:07:59 GMT 2025 - 5.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java
public void testRemove_unsupported() { assertThrows(UnsupportedOperationException.class, () -> getMap().remove(k0())); expectUnchanged(); assertEquals("remove(present) should not remove the element", v0(), get(k0())); } @MapFeature.Require(absent = SUPPORTS_REMOVE) public void testRemove_unsupportedNotPresent() { try { assertNull(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 5.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractListMultimap.java
protected AbstractListMultimap(Map<K, Collection<V>> map) { super(map); } @Override abstract List<V> createCollection(); @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types @Override List<V> createUnmodifiableEmptyCollection() { return emptyList(); } @Override <E extends @Nullable Object> Collection<E> unmodifiableCollectionSubclass(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Apr 12 15:07:59 GMT 2025 - 4.6K bytes - Click Count (0)