Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,616 for Map (0.21 sec)

  1. guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

      }
    
      public void testTransformSingletonMapEquality() {
        Map<String, String> map =
            Maps.transformValues(ImmutableMap.of("a", 1), Functions.toStringFunction());
        Map<String, String> expected = ImmutableMap.of("a", "1");
        assertMapsEqual(expected, map);
        assertEquals(expected.get("a"), map.get("a"));
      }
    
      public void testTransformIdentityFunctionEquality() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertSame(three, map.get(one));
        assertFalse(map.replace(one, two, three));
        assertSame(three, map.get(one));
        assertTrue(map.replace(one, three, two));
        assertSame(two, map.get(one));
        assertEquals(3, map.size());
    
        map.clear();
        assertTrue(map.isEmpty());
        assertEquals(0, map.size());
    
        cache.getUnchecked(one);
        assertEquals(1, map.size());
        assertSame(one, map.get(one));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

      }
    
      public void testCopyOf_map_empty() {
        Map<Class<?>, Object> in = Collections.emptyMap();
        ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in);
        assertTrue(map.isEmpty());
        assertSame(map, ImmutableClassToInstanceMap.of());
        assertSame(map, ImmutableClassToInstanceMap.copyOf(map));
      }
    
      public void testOf_zero() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/FunctionsTest.java

            .addEqualityGroup(Functions.forMap(map))
            .addEqualityGroup(Functions.forMap(map, null))
            .addEqualityGroup(Functions.forMap(map, 43))
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testForMapWithDefault_includeSerializable() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("One", 1);
        map.put("Three", 3);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/FunctionsTest.java

            .addEqualityGroup(Functions.forMap(map))
            .addEqualityGroup(Functions.forMap(map, null))
            .addEqualityGroup(Functions.forMap(map, 43))
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testForMapWithDefault_includeSerializable() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("One", 1);
        map.put("Three", 3);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/FileToRawModelMerger.java

            // don't merge
        }
    
        @Override
        protected void mergeModel_Profiles(
                Model.Builder builder, Model target, Model source, boolean sourceDominant, Map<Object, Object> context) {
            Iterator<Profile> sourceIterator = source.getProfiles().iterator();
            builder.profiles(target.getProfiles().stream()
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Functions.java

        final Map<K, V> map;
    
        FunctionForMapNoDefault(Map<K, V> map) {
          this.map = checkNotNull(map);
        }
    
        @Override
        @ParametricNullness
        public V apply(@ParametricNullness K key) {
          V result = map.get(key);
          checkArgument(result != null || map.containsKey(key), "Key '%s' not present in map", key);
          // The unchecked cast is safe because of the containsKey check.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/ApiResult.java

        public static class ApiSystemInfoResponse extends ApiResponse {
            protected List<Map<String, String>> envProps;
            protected List<Map<String, String>> systemProps;
            protected List<Map<String, String>> fessProps;
            protected List<Map<String, String>> bugReportProps;
    
            public ApiSystemInfoResponse envProps(final List<Map<String, String>> envProps) {
                this.envProps = envProps;
                return this;
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

      }
    
      public void testKeySet() {
        Map<String, Integer> map = create();
        Set<String> keySet = map.keySet();
        assertTrue(keySet instanceof SynchronizedSet);
        assertSame(mutex, ((SynchronizedSet<?>) keySet).mutex);
      }
    
      public void testValues() {
        Map<String, Integer> map = create();
        Collection<Integer> values = map.values();
        assertTrue(values instanceof SynchronizedCollection);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableMapKeySet.java

      private final ImmutableMap<K, V> map;
    
      ImmutableMapKeySet(ImmutableMap<K, V> map) {
        this.map = map;
      }
    
      @Override
      public int size() {
        return map.size();
      }
    
      @Override
      public UnmodifiableIterator<K> iterator() {
        return map.keyIterator();
      }
    
      @Override
      public Spliterator<K> spliterator() {
        return map.keySpliterator();
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 2.7K bytes
    - Viewed (0)
Back to top