- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 158 for isPresent (0.19 sec)
-
maven-core/src/main/java/org/apache/maven/internal/impl/DefaultToolchainsBuilder.java
if (request.getGlobalToolchainsSource().isPresent()) { req.setGlobalToolchainsSource(new MappedToolchainsSource( request.getGlobalToolchainsSource().get())); } else if (request.getGlobalToolchainsPath().isPresent()) { req.setGlobalToolchainsSource(new org.apache.maven.building.FileSource(
Java - Registered: Sun Mar 24 03:35:10 GMT 2024 - Last Modified: Mon Sep 11 16:14:36 GMT 2023 - 5.3K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/execution/DefaultBuildResumptionAnalyzerTest.java
executionResult.setTopologicallySortedProjects(asList(projectA, projectB)); Optional<BuildResumptionData> result = analyzer.determineBuildResumptionData(executionResult); assertThat(result.isPresent(), is(true)); assertThat(result.get().getRemainingProjects(), is(asList("test:B"))); } @Test void resumeFromIsIgnoredWhenFirstProjectFails() {
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Sat Apr 15 17:24:20 GMT 2023 - 5.6K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSettingsBuilder.java
if (request.getGlobalSettingsSource().isPresent()) { req.setGlobalSettingsSource(new MappedSettingsSource( request.getGlobalSettingsSource().get())); } if (request.getGlobalSettingsPath().isPresent()) { req.setGlobalSettingsFile(request.getGlobalSettingsPath().get().toFile()); }
Java - Registered: Sun Mar 24 03:35:10 GMT 2024 - Last Modified: Tue Dec 05 08:11:33 GMT 2023 - 5.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE); assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).isPresent(); assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).isPresent(); assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).isPresent(); assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Oct 03 20:10:02 GMT 2023 - 8.8K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTask.java
private static RichReport.Configuration reportConfigurationOf(Provider<RichReport> report) { if (report.isPresent()) { return report.get().toConfiguration(); } return null; } private static File maybeFile(RegularFileProperty property) { if (property.isPresent()) { return property.getAsFile().get(); } return null; }
Java - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Apr 26 10:58:32 GMT 2023 - 13.3K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java
if (!wildcardType.getExtendedType().isPresent() && !wildcardType.getSuperType().isPresent()) { typeMetaData.setWildcard(); } else { wildcardType.getExtendedType().ifPresent(referenceType -> typeMetaData.setUpperBounds(extractTypeName(referenceType))); wildcardType.getSuperType().ifPresent(referenceType -> typeMetaData.setLowerBounds(extractTypeName(referenceType)));
Java - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Thu Sep 21 13:27:02 GMT 2023 - 11.7K bytes - Viewed (0) -
guava/src/com/google/common/base/Optional.java
Optional() {} /** * Returns {@code true} if this holder contains a (non-null) instance. * * <p><b>Comparison to {@code java.util.Optional}:</b> no differences. */ public abstract boolean isPresent(); /** * Returns the contained instance, which must be present. If the instance might be absent, use * {@link #or(Object)} or {@link #orNull} instead. *
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 14.6K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/graph/ProjectSelector.java
for (String selector : projectSelectors) { Optional<MavenProject> optSelectedProject = findOptionalProjectBySelector(projects, baseDirectory, selector); if (!optSelectedProject.isPresent()) { String message = "Could not find the selected project in the reactor: " + selector; throw new MavenExecutionException(message, request.getPom()); }
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Dec 26 15:12:32 GMT 2022 - 5.3K bytes - Viewed (0) -
guava/src/com/google/common/base/MoreObjects.java
return !((java.util.Optional<?>) value).isPresent(); } else if (value instanceof OptionalInt) { return !((OptionalInt) value).isPresent(); } else if (value instanceof OptionalLong) { return !((OptionalLong) value).isPresent(); } else if (value instanceof OptionalDouble) { return !((OptionalDouble) value).isPresent(); } else if (value instanceof Optional) {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri Oct 13 14:11:58 GMT 2023 - 15.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/OptionalTest.java
} public void testIsPresent_no() { assertFalse(Optional.absent().isPresent()); } @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional public void testIsPresent_yes() { assertTrue(Optional.of("training").isPresent()); } public void testGet_absent() { Optional<String> optional = Optional.absent(); try { optional.get();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 11.2K bytes - Viewed (0)