- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 187 for ifPresent (0.04 sec)
-
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java
.setProcessPlugins(request.isProcessPlugins()); ProjectBuildingResult res; if (request.getPath().isPresent()) { Path path = request.getPath().get(); res = builder.build(path.toFile(), req); } else if (request.getSource().isPresent()) { Source source = request.getSource().get(); ModelSource2 modelSource = new SourceWrapper(source);
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sat Sep 13 09:44:11 UTC 2025 - 8.8K bytes - Viewed (0) -
build-logic/jvm/src/main/kotlin/gradlebuild.launchable-jar.gradle.kts
} } manifest.attributes("Class-Path-Source" to "manifestClasspath") manifest.attributes("Class-Path" to classpath) if (app.mainClassName.isPresent) { manifest.attributes("Main-Class" to app.mainClassName) }Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Fri Jun 21 18:38:28 UTC 2024 - 1.6K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/cisupport/CIDetectorHelper.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sun Apr 13 18:50:07 UTC 2025 - 1.9K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/internal/impl/TestApi.java
assertNotNull(resolved); assertNotNull(resolved.getPath()); Optional<Path> op = session.getArtifactPath(resolved); assertTrue(op.isPresent(), "Expected " + op + ".isPresent() to return true"); assertEquals(resolved.getPath(), op.get()); } @Test void testBuildProject() {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 10.2K bytes - Viewed (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/ide/AndroidStudioSystemProperties.kt
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Tue Feb 20 09:51:32 UTC 2024 - 2.9K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Present.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Apr 15 22:14:00 UTC 2025 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteSource.java
* * @throws IOException if an I/O error occurs * @since 15.0 */ public boolean isEmpty() throws IOException { Optional<Long> sizeIfKnown = sizeIfKnown(); if (sizeIfKnown.isPresent()) { return sizeIfKnown.get() == 0L; } Closer closer = Closer.create(); try { InputStream in = closer.register(openStream()); return in.read() == -1; } catch (Throwable e) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 08 18:35:13 UTC 2025 - 25.7K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Absent.java
@SuppressWarnings("unchecked") // implementation is "fully variant" static <T> Optional<T> withType() { return (Optional<T>) INSTANCE; } private Absent() {} @Override public boolean isPresent() { return false; } @Override public T get() { throw new IllegalStateException("Optional.get() cannot be called on an absent value"); } @Override public T or(T defaultValue) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Apr 15 22:14:00 UTC 2025 - 2.6K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/SinceAnnotationRule.java
/** * Kotlin file-facade classes can't have kdoc comments. */ private boolean isKotlinFileFacadeClass(JApiCompatibility member) { return member instanceof JApiClass && ((JApiClass) member).getNewClass().isPresent() && KotlinMetadataQueries.INSTANCE.isKotlinFileFacadeClass(((JApiClass) member).getNewClass().get()); }Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Dec 24 14:15:15 UTC 2025 - 3.8K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/ProtoLookup.java
this.components = components; } @Override public <T> T lookup(Class<T> type) { Optional<T> optional = lookupOptional(type); if (optional.isPresent()) { return optional.get(); } else { throw new LookupException("No mapping for key: " + type.getName()); } } @OverrideRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.8K bytes - Viewed (0)