Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 332 for setValue (0.06 seconds)

  1. guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java

            "Should not contain null after unsupported putIfAbsent(present, null)");
      }
    
      @CanIgnoreReturnValue
      private V putIfAbsent(Entry<K, V> entry) {
        return getMap().putIfAbsent(entry.getKey(), entry.getValue());
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 4.9K bytes
    - Click Count (0)
  2. compat/maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java

            if (from != null) {
                for (Map.Entry<K, ? extends Artifact> entry : from.entrySet()) {
                    to.put(entry.getKey(), ArtifactUtils.copyArtifact(entry.getValue()));
                }
            }
    
            return to;
        }
    
        private static <T> List<T> copyList(List<T> original) {
            List<T> copy = null;
    
            if (original != null) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 6.9K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlan.java

                                .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()))
                                .entrySet()
                                .stream()
                                .filter(p -> p.getValue() > 1)
                                .map(Map.Entry::getKey)
                                .collect(Collectors.toSet());
                    }
                }
            }
            return duplicateIds;
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 28 12:11:25 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/configuration/internal/DefaultBeanConfigurator.java

                    children.add(toXml(c, evaluator));
                }
                String name = config.getName();
                Object value = evaluator.evaluate(config.getValue());
                return XmlNode.newInstance(name, value != null ? value.toString() : null, null, children, null);
            }
        }
    
        static class PathConverter extends AbstractBasicConverter {
            @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategy.java

            Set<Path> errorPoms = new HashSet<>();
    
            for (Map.Entry<Path, Document> entry : pomMap.entrySet()) {
                Path pomPath = entry.getKey();
                Document pomDocument = entry.getValue();
                processedPoms.add(pomPath);
    
                context.info(pomPath + " (checking for Maven 4 compatibility issues)");
                context.indent();
    
                try {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 22.2K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/Task.java

     * @since 4.0.0
     */
    public abstract class Task {
    
        private final String value;
    
        public Task(String value) {
            this.value = Objects.requireNonNull(value, "value");
        }
    
        public String getValue() {
            return value;
        }
    
        @Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            }
            if (o instanceof Task task) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/AbstractImmutableSortedMapMapInterfaceTest.java

      @Override
      protected void assertMoreInvariants(Map<K, V> map) {
        // TODO: can these be moved to MapInterfaceTest?
        for (Entry<K, V> entry : map.entrySet()) {
          assertEquals(entry.getKey() + "=" + entry.getValue(), entry.toString());
        }
    
        assertEquals("{" + JOINER.join(map.entrySet()) + "}", map.toString());
        assertEquals("[" + JOINER.join(map.entrySet()) + "]", map.entrySet().toString());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 2K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/MultimapsFilterEntriesAsMapTest.java

          new Predicate<Entry<String, Integer>>() {
            @Override
            public boolean apply(Entry<String, Integer> entry) {
              return !Objects.equals(entry.getKey(), "badkey") && entry.getValue() != 55556;
            }
          };
    
      public MultimapsFilterEntriesAsMapTest() {
        super(true, true, false);
      }
    
      private Multimap<String, Integer> createMultimap() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Feb 12 03:49:18 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutTester.java

      public void testPutDuplicateValue() {
        List<Entry<K, V>> entries = copyToList(multimap().entries());
    
        for (Entry<K, V> entry : entries) {
          resetContainer();
          K k = entry.getKey();
          V v = entry.getValue();
    
          Set<V> values = multimap().get(k);
          Set<V> expectedValues = copyToSet(values);
    
          assertFalse(multimap().put(k, v));
          assertEquals(expectedValues, values);
          assertGet(k, expectedValues);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 2.8K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/cache/TestingRemovalListeners.java

        public int getCount() {
          return count.get();
        }
    
        public K getLastEvictedKey() {
          return lastNotification.getKey();
        }
    
        public V getLastEvictedValue() {
          return lastNotification.getValue();
        }
    
        public RemovalNotification<K, V> getLastNotification() {
          return lastNotification;
        }
      }
    
      /** No-op {@link RemovalListener}. */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 3.1K bytes
    - Click Count (0)
Back to Top