- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for Stream$Empty$ (0.12 sec)
-
guava-tests/test/com/google/common/collect/MoreCollectorsTest.java
* * @author Louis Wasserman */ @GwtCompatible @ElementTypesAreNonnullByDefault public class MoreCollectorsTest extends TestCase { public void testToOptionalEmpty() { assertThat(Stream.empty().collect(toOptional())).isEmpty(); } public void testToOptionalSingleton() { assertThat(Stream.of(1).collect(toOptional())).hasValue(1); } public void testToOptionalNull() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Streams.java
* otherwise returns an empty stream. */ public static <T> Stream<T> stream(com.google.common.base.Optional<T> optional) { return optional.isPresent() ? Stream.of(optional.get()) : Stream.empty(); } /** * If a value is present in {@code optional}, returns a stream containing only that element, * otherwise returns an empty stream. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 37.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java
if (StringUtil.isNotEmpty(msg) || msg.contains("index.analyze.max_token_count")) { logger.warn("Failed to parse document. ", e); return Stream.empty(); } throw e; } }).toArray(n -> new SuggestItem[n]); final long parseTime = System.currentTimeMillis();
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 26.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
} Class<? extends T> implementation = getImplementation(type); if (implementation != null) { return get(implementation); } if (type == Stream.class) { return type.cast(Stream.empty()); } if (type.isEnum()) { T[] enumConstants = type.getEnumConstants(); return (enumConstants == null || enumConstants.length == 0) ? null : enumConstants[0]; } if (type.isArray()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 21.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/Streams.java
* otherwise returns an empty stream. */ public static <T> Stream<T> stream(com.google.common.base.Optional<T> optional) { return optional.isPresent() ? Stream.of(optional.get()) : Stream.empty(); } /** * If a value is present in {@code optional}, returns a stream containing only that element, * otherwise returns an empty stream. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 36.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java
Stream.of(new ProjectArtifact(project)), // main project artifact if not a pom "pom".equals(project.getPackaging()) ? Stream.empty() : Stream.of(project.getArtifact())), // attached artifacts project.getAttachedArtifacts().stream()); return artifacts.map(RepositoryUtils::toArtifact); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 22.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 24 13:42:31 UTC 2024 - 35.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java
.orElse(false)) { return e.getValue().stream(); } return Stream.empty(); }).filter(StringUtil::isNotBlank).toArray(n -> new String[n]); } default void setAppValue(final String value) { setSystemProperty(Constants.APP_VALUE_PROPERTY, value);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Oct 12 01:54:15 UTC 2024 - 87.2K bytes - Viewed (0)