Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 104 for AsMap (0.07 sec)

  1. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

      }
    
      @LazyInit @CheckForNull private transient Map<K, Long> asMap;
    
      /** Returns a live, read-only view of the map backing this {@code AtomicLongMap}. */
      public Map<K, Long> asMap() {
        Map<K, Long> result = asMap;
        return (result == null) ? asMap = createAsMap() : result;
      }
    
      private Map<K, Long> createAsMap() {
        return Collections.unmodifiableMap(map);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskInputFilePropertiesIntegrationTest.groovy

                    'Use a RegularFile instance',
                    'Use a URI or URL instance',
                    'Use a TextResource instance',
                ]
                additionalData.asMap == [
                    'typeName': 'org.gradle.api.DefaultTask',
                    'propertyName': 'input',
                ]
            }
    
            where:
            method | targetType
            "dir"  | "directory"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 13:04:02 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

          sum = sum + value.get();
        }
        return sum;
      }
    
      @LazyInit @CheckForNull private transient Map<K, Long> asMap;
    
      /** Returns a live, read-only view of the map backing this {@code AtomicLongMap}. */
      public Map<K, Long> asMap() {
        Map<K, Long> result = asMap;
        return (result == null) ? asMap = createAsMap() : result;
      }
    
      private Map<K, Long> createAsMap() {
        return Collections.unmodifiableMap(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/problems/ReceivedProblem.groovy

                    this.data = [:]
                } else {
                    def d = data.findAll { k, v -> v != null }
                    // GeneralData already contains asMap property; it is removed for clarity
                    if (d['asMap'] instanceof Map) {
                        this.data = d['asMap'] as Map<String, Object>
                    } else {
                        this.data = d
                    }
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 12:45:23 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

            nonZeroKeys.add(key);
          }
        }
        assertEquals(ITERATIONS, map.size());
        assertTrue(map.asMap().containsValue(0L));
    
        map.removeAllZeros();
        assertFalse(map.asMap().containsValue(0L));
        assertEquals(ITERATIONS / 2, map.size());
        assertEquals(nonZeroKeys, map.asMap().keySet());
      }
    
      public void testClear() {
        AtomicLongMap<Object> map = AtomicLongMap.create();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

            }
            if (problem.additionalData?.asMap.size() == 1) {
                println "    additionalData.asMap == [ '${problem.additionalData.asMap.keySet().iterator().next()}' : '${problem.additionalData.asMap.values().iterator().next()}' ]"
            } else if (problem.additionalData?.asMap.size() > 1) {
                println "    additionalData.asMap == ["
                problem.additionalData.asMap.each { key, value ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

            nonZeroKeys.add(key);
          }
        }
        assertEquals(ITERATIONS, map.size());
        assertTrue(map.asMap().containsValue(0L));
    
        map.removeAllZeros();
        assertFalse(map.asMap().containsValue(0L));
        assertEquals(ITERATIONS / 2, map.size());
        assertEquals(nonZeroKeys, map.asMap().keySet());
      }
    
      public void testClear() {
        AtomicLongMap<Object> map = AtomicLongMap.create();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileProblemsIntegrationTest.groovy

                assertProblem(it, "ERROR", false)
                fqid == 'compilation:java:java-compilation-error'
                details == 'warnings found and -Werror specified'
                solutions.empty
                additionalData.asMap == ["formatted": "error: warnings found and -Werror specified"]
            }
    
            // Based on the Java version, the types in the lint message will differ...
            String expectedType
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 16:15:29 UTC 2024
    - 24K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultNamedDomainObjectListTest.groovy

            list.index.asMap().size() == 2
            list.index.pendingAsMap.size() == 2
    
            when: "filter the list via the `named` method"
            def filtered = list.named { it.contains("2") }
    
            then: "unrealized elements remain as such"
            list.index.asMap().size() == 2
            list.index.pendingAsMap.size() == 2
    
            filtered.index.asMap().size() == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 08:21:31 UTC 2023
    - 13K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MultimapBuilder.java

       * <p>The collections returned by {@link Multimap#keySet()}, {@link Multimap#keys()}, and {@link
       * Multimap#asMap()} will iterate through the keys in sorted order.
       *
       * <p>For all multimaps generated by the resulting builder, the {@link Multimap#keySet()} can be
       * safely cast to a {@link java.util.SortedSet}, and the {@link Multimap#asMap()} can safely be
       * cast to a {@link java.util.SortedMap}.
       */
      @SuppressWarnings("rawtypes")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top