- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 168 for ifPresent (0.05 sec)
-
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperties.java
if (!(jApiCompatibility instanceof JApiMethod) || !((JApiMethod) jApiCompatibility).getOldMethod().isPresent()) { return Optional.empty(); } JApiMethod jApiMethod = (JApiMethod) jApiCompatibility;
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Oct 02 14:20:08 UTC 2024 - 9.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTester.java
assertEquals(expected.length(), source.length()); } public void testLengthIfKnown() throws IOException { Optional<Long> lengthIfKnown = source.lengthIfKnown(); if (lengthIfKnown.isPresent()) { assertEquals(expected.length(), (long) lengthIfKnown.get()); } } public void testReadLines_withProcessor() throws IOException { List<String> list = source.readLines(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.8K bytes - Viewed (0) -
android/guava/src/com/google/common/net/InternetDomainName.java
*/ private static boolean matchesType( Optional<PublicSuffixType> desiredType, Optional<PublicSuffixType> actualType) { return desiredType.isPresent() ? desiredType.equals(actualType) : actualType.isPresent(); } /** Returns the domain name, normalized to all lower case. */ @Override public String toString() { return name; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Feb 05 20:47:23 UTC 2024 - 28K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java
} @Nonnull @Override public Optional<Path> getPath(Project project) { Optional<ProducedArtifact> mainArtifact = project.getMainArtifact(); if (mainArtifact.isPresent()) { return artifactManager.getPath(mainArtifact.get()); } return Optional.empty(); } @Nonnull @Override
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 9.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/FessSearchAction.java
// ========= protected boolean isLoginRequired() { if (fessConfig.isLoginRequired() && !fessLoginAssist.getSavedUserBean().isPresent()) { return true; } return false; } protected void buildFormParams(final SearchForm form) { final HttpSession session = request.getSession(false);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 10K bytes - Viewed (0) -
android/guava/src/com/google/common/base/MoreObjects.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 10 15:41:27 UTC 2024 - 16.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt
* exceptions thrown from the test do not cause this check to fail. */ @RegisterExtension val noDataLeftBehind = AfterEachCallback { context: ExtensionContext -> if (context.executionException.isPresent) return@AfterEachCallback assertThat(data.readByteString().hex(), "Data not empty") .isEqualTo("") } // Mutually exclusive. Use the one corresponding to the peer whose behavior you wish to test.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
LinkedHashSet<Class<?>> candidateClasses = Sets.newLinkedHashSet(); for (Class<?> cls : classes) { Optional<String> testedClassName = TEST_SUFFIX.chop(cls.getName()); if (testedClassName.isPresent()) { Class<?> testedClass = classMap.get(testedClassName.get()); if (testedClass != null) { testClasses.put(testedClass, cls); } } else { candidateClasses.add(cls);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 19:43:49 UTC 2024 - 17.9K bytes - Viewed (0) -
architecture/standards/0006-use-of-provider-apis-in-gradle.md
```groovy public interface NewThing { Property<String> getSomeProperty() } // Unacceptable String value if (!getSomeProperty().isPresent()) { value = "convention" } else { value = getSomeProperty().get() } // Also unacceptable String value = getSomeProperty().getOrElse("convention") // This should be always:
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Oct 15 20:00:57 UTC 2024 - 10K bytes - Viewed (0) -
guava/src/com/google/common/net/InternetDomainName.java
*/ private static boolean matchesType( Optional<PublicSuffixType> desiredType, Optional<PublicSuffixType> actualType) { return desiredType.isPresent() ? desiredType.equals(actualType) : actualType.isPresent(); } /** Returns the domain name, normalized to all lower case. */ @Override public String toString() { return name; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Feb 05 20:47:23 UTC 2024 - 28K bytes - Viewed (0)