Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 64 for toMap (0.03 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultMojoExecution.java

                            .filter(Objects::nonNull)
                            .map(Node::getDependency)
                            .filter(Objects::nonNull)
                            .collect(Collectors.toMap(d -> d.getGroupId() + ":" + d.getArtifactId(), d -> d)));
                }
            };
        }
    
        @Override
        public PluginExecution getModel() {
            return delegate.getPlugin().getExecutions().stream()
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 24 17:29:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. internal/bucket/replication/filter.go

    	if len(f.cachedTags) == 0 {
    		return true
    	}
    
    	parsedTags, err := tags.ParseObjectTags(userTags)
    	if err != nil {
    		return false
    	}
    
    	tagsMap := parsedTags.ToMap()
    
    	// This filter has tags configured but this object
    	// does not have any tag, skip this object
    	if len(tagsMap) == 0 {
    		return false
    	}
    
    	// Both filter and object have tags, find a match,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Sep 28 18:25:46 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CliUtils.java

        @Nonnull
        public static Path getCanonicalPath(Path path) {
            requireNonNull(path, "path");
            return path.toAbsolutePath().normalize();
        }
    
        @Nonnull
        public static Map<String, String> toMap(Properties properties) {
            requireNonNull(properties, "properties");
            HashMap<String, String> map = new HashMap<>();
            for (String key : properties.stringPropertyNames()) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Oct 13 18:30:29 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. cmd/bucket-policy.go

    		cloneHeader.Del("x-amz-signature-age")
    	}
    
    	if userTags := cloneHeader.Get(xhttp.AmzObjectTagging); userTags != "" {
    		tag, _ := tags.ParseObjectTags(userTags)
    		if tag != nil {
    			tagMap := tag.ToMap()
    			keys := make([]string, 0, len(tagMap))
    			for k, v := range tagMap {
    				args[pathJoin("ExistingObjectTag", k)] = []string{v}
    				args[pathJoin("RequestObjectTag", k)] = []string{v}
    				keys = append(keys, k)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                modelBuildingRequest.inactiveProfileIds(request.getInactiveProfileIds());
                modelBuildingRequest.systemProperties(toMap(request.getSystemProperties()));
                modelBuildingRequest.userProperties(toMap(request.getUserProperties()));
                modelBuildingRequest.repositoryMerging(ModelBuilderRequest.RepositoryMerging.valueOf(
                        request.getRepositoryMerging().name()));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 17:20:31 UTC 2025
    - 51.8K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

    import org.apache.maven.jline.MessageUtils;
    
    import static java.util.Objects.requireNonNull;
    import static org.apache.maven.cling.invoker.CliUtils.createInterpolator;
    import static org.apache.maven.cling.invoker.CliUtils.toMap;
    
    public class CommonsCliOptions implements Options {
        public static CommonsCliOptions parse(String source, String[] args) throws ParseException {
            CLIManager cliManager = new CLIManager();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Oct 08 07:36:42 UTC 2025
    - 21.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testToMap() {
        assertThat(fluent(1, 2, 3).toMap(Functions.toStringFunction()).entrySet())
            .containsExactly(immutableEntry(1, "1"), immutableEntry(2, "2"), immutableEntry(3, "3"))
            .inOrder();
      }
    
      public void testToMap_nullKey() {
        assertThrows(
            NullPointerException.class, () -> fluent(1, null, 2).toMap(Functions.constant("foo")));
      }
    
      public void testToMap_nullValue() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java

            // Lifecycles cannot be cached as extensions might add custom lifecycles later in the execution.
            try {
                return registry != null
                        ? registry.stream().collect(Collectors.toMap(lf -> lf.id(), lf -> new Lifecycle(registry, lf)))
                        : Map.of();
            } catch (LookupException e) {
                throw new IllegalStateException("Unable to lookup lifecycles from the plexus container", e);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertThrows(
            NullPointerException.class,
            () -> Maps.toMap((Iterable<String>) strings, Functions.constant("foo")));
      }
    
      public void testToMapWithNullValues() {
        Iterable<String> strings = ImmutableList.of("one", "two", "three");
        assertThrows(NullPointerException.class, () -> Maps.toMap(strings, Functions.constant(null)));
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (0)
  10. impl/maven-core/src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java

            List<ProjectBuildingResult> projectBuildingResults =
                    createProjectBuildingResultMocks(Stream.of(projectParent, projectModuleD)
                            .collect(Collectors.toMap(MavenProject::getArtifactId, identity()))
                            .values());
            when(projectBuilder.build(anyList(), anyBoolean(), any(ProjectBuildingRequest.class)))
                    .thenReturn(projectBuildingResults);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 09 20:39:03 UTC 2025
    - 28K bytes
    - Viewed (0)
Back to top