Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 249 for nonNull (0.05 sec)

  1. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelTransformer.java

         *
         * @param model the input model
         * @return the transformed model, or the input model if no transformation is needed
         * @throws ModelTransformerException
         */
        @Nonnull
        default Model transformFileModel(@Nonnull Model model) throws ModelTransformerException {
            return model;
        }
    
        /**
         * Apply a transformation on the raw models.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactCoordinatesFactoryRequest.java

                    .session(nonNull(session, "session"))
                    .coordinateString(nonNull(coordinateString, "coordinateString"))
                    .build();
        }
    
        @Nonnull
        static ArtifactCoordinatesFactoryRequest build(@Nonnull Session session, @Nonnull ArtifactCoordinates coordinates) {
            return ArtifactCoordinatesFactoryRequest.builder()
                    .session(nonNull(session, "session"))
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

         * @return an identification of the patch-module path for the given module.
         *
         * @see Modular#moduleName()
         */
        @Nonnull
        public static Modular patchModule(@Nonnull String moduleName) {
            return PATCH_MODULE.new Modular(moduleName);
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/DependencyCoordinates.java

         * a <abbr>JAR</abbr> containing test classes, <i>etc.</i>
         */
        @Nonnull
        Type getType();
    
        /**
         * {@return the time at which the dependency will be used}
         * If may be, for example, at compile time only, at run time or at test time.
         */
        @Nonnull
        DependencyScope getScope();
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Parser.java

         * @throws ParserException if there's an error during parsing of the command or arguments
         * @throws IOException if there's an I/O error during the parsing process
         */
        @Nonnull
        default R mvn(@Nonnull String[] args, @Nonnull Logger logger, @Nonnull MessageBuilderFactory messageBuilderFactory)
                throws ParserException, IOException {
            return parse(ParserRequest.mvn(args, logger, messageBuilderFactory).build());
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 04 12:23:10 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/ExtensibleEnumRegistry.java

    import org.apache.maven.api.ExtensibleEnum;
    import org.apache.maven.api.Service;
    import org.apache.maven.api.annotations.Nonnull;
    
    public interface ExtensibleEnumRegistry<T extends ExtensibleEnum> extends Service {
        @Nonnull
        Optional<T> lookup(@Nonnull String id);
    
        @Nonnull
        default T require(@Nonnull String id) {
            return lookup(id).orElseThrow(() -> new IllegalArgumentException("Unknown extensible enum value '" + id + "'"));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Feb 28 23:54:53 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyCoordinatesFactoryRequest.java

        }
    
        @Nonnull
        static DependencyCoordinatesFactoryRequest build(@Nonnull Session session, @Nonnull Dependency dependency) {
            return builder()
                    .session(nonNull(session, "session cannot be null"))
                    .groupId(nonNull(dependency, "dependency").getGroupId())
                    .artifactId(dependency.getArtifactId())
                    .version(dependency.getVersion().asString())
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java

                throw new IllegalArgumentException("Unsupported scope " + scope);
            }
        }
    
        @Override
        public List<Resource> getResources(@Nonnull Project project, @Nonnull ProjectScope scope) {
            Project prj = nonNull(project, "project");
            if (nonNull(scope, "scope") == ProjectScope.MAIN) {
                return prj.getBuild().getResources();
            } else if (scope == ProjectScope.TEST) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelTransformer.java

         * @return the transformed model, or the input model if no transformation is needed
         */
        @Nonnull
        Model transform(
                @Nonnull Model model, @Nonnull ModelBuilderRequest request, @Nonnull ModelProblemCollector problems);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelParser.java

         * @param dir the directory to locate the pom for, never {@code null}
         * @return a {@code Source} pointing to the located pom or an empty {@code Optional} if none was found by this parser
         */
        @Nonnull
        Optional<Source> locate(@Nonnull Path dir);
    
        /**
         * Parse the model obtained previously by a previous call to {@link #locate(Path)}.
         *
         * @param source the source to parse, never {@code null}
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Sep 10 17:18:47 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top