Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ofNullable (0.05 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverRequest.java

                @Nonnull
                @Override
                public Optional<Project> getProject() {
                    return Optional.ofNullable(project);
                }
    
                @Nonnull
                @Override
                public Optional<Artifact> getRootArtifact() {
                    return Optional.ofNullable(rootArtifact);
                }
    
                @Nonnull
                @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Oct 16 14:15:37 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java

        }
    
        private Optional<String> extractRequiredJavaVersion(PlexusConfiguration c) {
            return Optional.ofNullable(c.getChild("requiredJavaVersion")).map(PlexusConfiguration::getValue);
        }
    
        private Optional<String> extractRequiredMavenVersion(PlexusConfiguration c) {
            return Optional.ofNullable(c.getChild("requiredMavenVersion")).map(PlexusConfiguration::getValue);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/util/GsaConfigParser.java

        }
    
        public OptionalEntity<WebConfig> getWebConfig() {
            return OptionalUtil.ofNullable(webConfig);
        }
    
        public OptionalEntity<FileConfig> getFileConfig() {
            return OptionalUtil.ofNullable(fileConfig);
        }
    
        public LabelType[] getLabelTypes() {
            return labelList.toArray(new LabelType[labelList.size()]);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

            if (artifact == null) {
                return null;
            }
    
            Artifact result = toArtifact(artifact);
    
            List<Exclusion> excl = Optional.ofNullable(exclusions).orElse(Collections.emptyList()).stream()
                    .map(RepositoryUtils::toExclusion)
                    .collect(Collectors.toList());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

         *
         * @return the {@code javax.tool} enumeration value corresponding to this {@code JavaPathType}
         */
        public Optional<JavaFileManager.Location> location() {
            return Optional.ofNullable(location);
        }
    
        /**
         * Returns the path type associated to the given {@code javax.tool} location.
         * This method is the converse of {@link #location()}.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Optional.java

       * reference; otherwise returns {@link Optional#absent}.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this method is equivalent to Java 8's
       * {@code Optional.ofNullable}.
       */
      public static <T> Optional<T> fromNullable(@CheckForNull T nullableReference) {
        return (nullableReference == null) ? Optional.<T>absent() : new Present<T>(nullableReference);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/graph/AbstractNetwork.java

            return incidentNodes(edge).adjacentNode(nodePresent).equals(nodeToCheck);
          }
        };
      }
    
      @Override
      public Optional<E> edgeConnecting(N nodeU, N nodeV) {
        return Optional.ofNullable(edgeConnectingOrNull(nodeU, nodeV));
      }
    
      @Override
      public Optional<E> edgeConnecting(EndpointPair<N> endpoints) {
        validateEndpoints(endpoints);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/ProtoSession.java

                    private final Map<Artifact, Path> paths = new ConcurrentHashMap<>();
    
                    @Override
                    public Optional<Path> getPath(Artifact artifact) {
                        return Optional.ofNullable(paths.get(artifact));
                    }
    
                    @Override
                    public void setPath(ProducedArtifact artifact, Path path) {
                        paths.put(artifact, path);
                    }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top