Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for NewHashMap (0.34 sec)

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

        assertTrue(
            "A Map should equal any other Map containing the same entries.",
            getMap().equals(newHashMap(getSampleEntries())));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherMapWithDifferentEntries() {
        Map<K, V> other = newHashMap(getSampleEntries(getNumEntries() - 1));
        other.put(k3(), v3());
        assertFalse(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 4.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

            final Map<String, Object> map = newHashMap();
            BeanUtil.copyBeanToMap(bean2, map, converter(new NumberConverter("#,##0")));
            assertThat(map.get("aaa"), is((Object) "1,000"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCopyMapToBean_converter() throws Exception {
            final Map<String, Object> map = newHashMap();
            map.put("aaa", new Integer(1000));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformerTest.java

                Map<String, String> featureMap = newHashMap();
                featureMap.put("http://xml.org/sax/features/namespaces", "false");
                xpathTransformer.setFeatureMap(featureMap);
                Map<String, String> propertyMap = newHashMap();
                xpathTransformer.setPropertyMap(propertyMap);
                Map<String, String> childUrlRuleMap = newHashMap();
                childUrlRuleMap.put("//A", "href");
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java

        assertTrue(
            "A Map should equal any other Map containing the same entries.",
            getMap().equals(newHashMap(getSampleEntries())));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherMapWithDifferentEntries() {
        Map<K, V> other = newHashMap(getSampleEntries(getNumEntries() - 1));
        other.put(k3(), v3());
        assertFalse(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 4.8K bytes
    - Viewed (0)
  5. test/typeparam/issue48716.dir/main.go

    		dst.Add(t)
    		return true
    	})
    	return
    }
    
    type MapSet[T any] struct {
    	m a.Map[T, struct{}]
    }
    
    func HashSet[T comparable](capacity int) MapSet[T] {
    	return FromMap[T](a.NewHashMap[T, struct{}](capacity))
    }
    
    func FromMap[T any](m a.Map[T, struct{}]) MapSet[T] {
    	return MapSet[T]{
    		m: m,
    	}
    }
    
    func (s MapSet[T]) Add(t T) {
    	s.m.Put(t, struct{}{})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 1021 bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/FunctionsTest.java

      public void testComposition() {
        Map<String, Integer> mJapaneseToInteger = Maps.newHashMap();
        mJapaneseToInteger.put("Ichi", 1);
        mJapaneseToInteger.put("Ni", 2);
        mJapaneseToInteger.put("San", 3);
        Function<String, Integer> japaneseToInteger = Functions.forMap(mJapaneseToInteger);
    
        Map<Integer, String> mIntegerToSpanish = Maps.newHashMap();
        mIntegerToSpanish.put(1, "Uno");
        mIntegerToSpanish.put(3, "Tres");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/FileTransformerTest.java

            Map<String, String> featureMap = newHashMap();
            featureMap.put("http://xml.org/sax/features/namespaces", "false");
            fileTransformer.setFeatureMap(featureMap);
            Map<String, String> propertyMap = newHashMap();
            fileTransformer.setPropertyMap(propertyMap);
            Map<String, String> childUrlRuleMap = newHashMap();
            childUrlRuleMap.put("//A", "href");
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

              assertNull(expected);
            }
          }
        }
      }
    
      public void testAllRangesAlone() {
        for (Range<Integer> range : RANGES) {
          Map<Integer, Integer> model = Maps.newHashMap();
          putModel(model, range, 1);
          RangeMap<Integer, Integer> test = TreeRangeMap.create();
          test.put(range, 1);
          verify(model, test);
        }
      }
    
      public void testAllRangePairs() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/lang/AnnotationUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.lang;
    
    import static org.codelibs.core.collection.CollectionsUtil.newHashMap;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.lang.annotation.Annotation;
    import java.util.Map;
    
    import org.codelibs.core.beans.BeanDesc;
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/DefaultMavenRepositoryContentDescriptor.java

            }
            if (getExcludeSpecs() != null) {
                copy.setExcludeSpecs(Sets.newHashSet(getExcludeSpecs()));
            }
            if (getRequiredAttributes() != null) {
                copy.setRequiredAttributes(Maps.newHashMap(getRequiredAttributes()));
            }
            return copy;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top