- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 101 for IsPresent (0.05 seconds)
-
android/guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java
@Benchmark boolean getIfPresent(int repetitions) { boolean retVal = false; for (int i = 0; i < repetitions; ++i) { retVal &= Enums.getIfPresent(enumType, sampleData[i & 255]).isPresent(); } return retVal; } private enum SmallEnum { X0, X1, X2 } private enum MediumEnum { X0, X1, X2, X3, X4, X5, X6,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 29.4K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java
@Benchmark boolean getIfPresent(int repetitions) { boolean retVal = false; for (int i = 0; i < repetitions; ++i) { retVal &= Enums.getIfPresent(enumType, sampleData[i & 255]).isPresent(); } return retVal; } private enum SmallEnum { X0, X1, X2 } private enum MediumEnum { X0, X1, X2, X3, X4, X5, X6,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 29.4K bytes - Click Count (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/extension/GradleModuleExtension.kt
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Mar 11 22:40:18 GMT 2026 - 4.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserTimeZoneProcessProviderTest.java
OptionalThing<TimeZone> result = provider.findBusinessTimeZone(runtimeMeta, requestManager); // Verify that empty optional is returned assertNotNull(result); assertFalse(result.isPresent()); } // Test getRequestedTimeZone() method @Test public void test_getRequestedTimeZone() { // Execute TimeZone result = provider.getRequestedTimeZone(requestManager);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 7.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java
assertTrue(result.isPresent()); assertEquals("the", result.get().getInput()); } @Test public void test_get_nonExistingItem() { // Load test data loadTestData(); OptionalEntity<StopwordsItem> result = stopwordsFile.get(999); assertFalse(result.isPresent()); } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Iterables.java
* iterator whether it has any elements <i>remaining</i> (which one does using {@link * Iterator#hasNext}). * * <p><b>{@code Stream} equivalent:</b> {@code !stream.findAny().isPresent()} * * @return {@code true} if the iterable contains no elements */ public static boolean isEmpty(Iterable<?> iterable) { if (iterable instanceof Collection) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 16 18:35:28 GMT 2025 - 43.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/Iterables.java
* iterator whether it has any elements <i>remaining</i> (which one does using {@link * Iterator#hasNext}). * * <p><b>{@code Stream} equivalent:</b> {@code !stream.findAny().isPresent()} * * @return {@code true} if the iterable contains no elements */ public static boolean isEmpty(Iterable<?> iterable) { if (iterable instanceof Collection) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 43.6K bytes - Click Count (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. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 36.8K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/docker/DockerSupportService.java
boolean isComposeAvailable = false; // Check if the Docker binary exists final Optional<String> dockerBinary = getDockerPath(); if (isExcludedOs() == false && dockerBinary.isPresent()) { dockerPath = dockerBinary.get(); // Since we use a multi-stage Docker build, check the Docker version meets minimum requirementCreated: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 14.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
&& (m.getModifiers() & (PUBLIC | PROTECTED | PRIVATE)) == 0) .transform(Method::getDeclaringClass); if (!supersWithPackagePrivateWriteReplace.isPresent()) { continue; } assertWithMessage( "To help optimizers, any class that inherits a package-private writeReplace() method" + " should override that method.\n"
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 01 03:07:54 GMT 2025 - 5.1K bytes - Click Count (0)