- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 668 for empty (0.23 sec)
-
guava-tests/test/com/google/common/collect/StreamsTest.java
// no way to find out the stream is empty without walking its spliterator assertThat(findLast(list.stream().mapToInt(i -> i).filter(i -> i < 0))) .isEqualTo(OptionalInt.empty()); } public void testFindLast_longStream() { assertThat(findLast(LongStream.of())).isEqualTo(OptionalLong.empty()); assertThat(findLast(LongStream.of(1, 2, 3, 4, 5))).isEqualTo(OptionalLong.of(5));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 20K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/BytesTest.java
public void testConcat() { assertThat(Bytes.concat()).isEqualTo(EMPTY); assertThat(Bytes.concat(EMPTY)).isEqualTo(EMPTY); assertThat(Bytes.concat(EMPTY, EMPTY, EMPTY)).isEqualTo(EMPTY); assertThat(Bytes.concat(ARRAY1)).isEqualTo(ARRAY1); assertThat(Bytes.concat(ARRAY1)).isNotSameInstanceAs(ARRAY1); assertThat(Bytes.concat(EMPTY, ARRAY1, EMPTY)).isEqualTo(ARRAY1); assertThat(Bytes.concat(ARRAY1, ARRAY1, ARRAY1))
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 06 16:10:08 GMT 2024 - 16.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java
expectContents(); } // retainAll(null) /* * AbstractCollection fails the retainAll(null) test when the subject * collection is empty, but we'd still like to test retainAll(null) when we * can. We split the test into empty and non-empty cases. This allows us to * suppress only the former. */ @CollectionFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(ZERO)
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 10.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ComparatorsTest.java
} public void testEmptiesFirst() { Optional<String> empty = Optional.empty(); Optional<String> abc = Optional.of("abc"); Optional<String> z = Optional.of("z"); Comparator<Optional<String>> comparator = Comparators.emptiesFirst(comparing(String::length)); Helpers.testComparator(comparator, empty, z, abc); // Just demonstrate that no explicit type parameter is required
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Apr 11 08:42:51 GMT 2024 - 6.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SetOperationsTest.java
protected Set<String> create(String[] elements) { return Sets.union(Sets.<String>newHashSet(), Sets.<String>newHashSet()); } }) .named("empty U empty") .withFeatures( CollectionSize.ZERO, CollectionFeature.NONE, CollectionFeature.ALLOWS_NULL_VALUES) .createTestSuite()); suite.addTest( SetTestSuiteBuilder.using(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 14.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ObjectArraysTest.java
} @GwtIncompatible // ObjectArrays.newArray(Class, int) public void testNewArray_fromClass_Empty() { String[] empty = ObjectArrays.newArray(String.class, 0); assertEquals(String[].class, empty.getClass()); assertThat(empty).isEmpty(); } @GwtIncompatible // ObjectArrays.newArray(Class, int) public void testNewArray_fromClass_Nonempty() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 8.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/wizard/AdminWizardAction.java
wConfig.setExcludedUrls(getDefaultString("default.config.web.excludedUrls", StringUtil.EMPTY)); wConfig.setIncludedDocUrls(getDefaultString("default.config.web.includedDocUrls", StringUtil.EMPTY)); wConfig.setIncludedUrls(getDefaultString("default.config.web.includedUrls", StringUtil.EMPTY));
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 12.7K bytes - Viewed (0) -
maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java
} public static String key(String groupId, String artifactId, String version) { notBlank(groupId, "groupId can neither be null, empty nor blank"); notBlank(artifactId, "artifactId can neither be null, empty nor blank"); notBlank(version, "version can neither be null, empty nor blank"); return groupId + ":" + artifactId + ":" + version; } private static void notBlank(String str, String message) {
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 06 08:51:18 GMT 2023 - 6.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/ContiguousSet.java
} } catch (NoSuchElementException e) { throw new IllegalArgumentException(e); } boolean empty; if (effectiveRange.isEmpty()) { empty = true; } else { /* * requireNonNull is safe because the effectiveRange operations above would have thrown or * effectiveRange.isEmpty() would have returned true. */
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 9.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
} private static final ImmutableMap<Class<?>, Method> EMPTY_GENERATORS; static { ImmutableMap.Builder<Class<?>, Method> builder = ImmutableMap.builder(); for (Method method : FreshValueGenerator.class.getDeclaredMethods()) { if (method.isAnnotationPresent(Empty.class)) { builder.put(method.getReturnType(), method); } } EMPTY_GENERATORS = builder.buildOrThrow(); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 28.6K bytes - Viewed (0)