- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 155 for optional (0.16 sec)
-
android/guava/src/com/google/common/base/Optional.java
*/ @DoNotMock("Use Optional.of(value) or Optional.absent()") @GwtCompatible(serializable = true) @ElementTypesAreNonnullByDefault public abstract class Optional<T> implements Serializable { /** * Returns an {@code Optional} instance with no contained reference. * * <p><b>Comparison to {@code java.util.Optional}:</b> this method is equivalent to Java 8's * {@code Optional.empty}. */ public static <T> Optional<T> absent() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 15.4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/ProfileActivation.java
* @param active Should the profile be activated? * @param optional Can the build continue if the profile does not exist? */ public void addProfileActivation(String id, boolean active, boolean optional) { final ActivationSettings settings = ActivationSettings.of(active, optional); this.activations.put(id, settings); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.6K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/CommonsCliMavenOptions.java
} return Optional.empty(); } @Override public Optional<Boolean> nonRecursive() { if (commandLine.hasOption(CLIManager.NON_RECURSIVE)) { return Optional.of(Boolean.TRUE); } return Optional.empty(); } @Override public Optional<Boolean> updateSnapshots() { if (commandLine.hasOption(CLIManager.UPDATE_SNAPSHOTS)) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 16K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ComparatorsTest.java
public void testEmptiesFirst() { Optional<String> empty = Optional.empty(); Optional<String> abc = Optional.of("abc"); Optional<String> z = Optional.of("z"); Comparator<Optional<String>> comparator = emptiesFirst(comparing(String::length)); testComparator(comparator, empty, z, abc); // Just demonstrate that no explicit type parameter is required Comparator<Optional<String>> unused = emptiesFirst(naturalOrder());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.4K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LayeredOptions.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.5K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java
public boolean isSelectedVersionKnown() throws OverConstrainedVersionException { return versionRange.isSelectedVersionKnown(this); } @Override public void setOptional(boolean optional) { this.optional = optional; }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 14.6K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 18.5K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseInvokerRequest.java
return topDirectory; } @Override public Optional<Path> rootDirectory() { return Optional.ofNullable(rootDirectory); } @Override public Optional<InputStream> in() { return Optional.ofNullable(in); } @Override public Optional<OutputStream> out() { return Optional.ofNullable(out); } @Override
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.3K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/ProjectActivation.java
* @param active Should the project be activated? * @param optional Can the build continue if the project does not exist? */ public void addProjectActivation(String selector, boolean active, boolean optional) { final ActivationSettings settings = ActivationSettings.of(active, optional); this.activations.add(new ProjectActivationSettings(selector, settings)); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 7K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/LayeredMavenOptions.java
super(options); } @Override public Optional<String> alternatePomFile() { return returnFirstPresentOrEmpty(MavenOptions::alternatePomFile); } @Override public Optional<Boolean> offline() { return returnFirstPresentOrEmpty(MavenOptions::offline); } @Override public Optional<Boolean> nonRecursive() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.3K bytes - Viewed (0)