Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 109 for newHashMap (0.18 sec)

  1. 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));
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 34.5K bytes
    - Viewed (0)
  2. 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(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.8K bytes
    - Viewed (0)
  3. 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(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.8K bytes
    - Viewed (0)
  4. 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");
    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

      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");
    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. android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

      protected Map<String, String> makeEmptyMap() {
        Map<String, Integer> underlying = Maps.newHashMap();
        return Maps.transformValues(
            new UnmodifiableIteratorMap<String, Integer>(underlying), Functions.toStringFunction());
      }
    
      @Override
      protected Map<String, String> makePopulatedMap() {
        Map<String, Integer> underlying = Maps.newHashMap();
        underlying.put("a", 1);
        underlying.put("b", 2);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        Map<String, Integer> underlying = Maps.newHashMap();
        underlying.put("a", 1);
        Map<String, String> map = Maps.transformValues(underlying, Functions.toStringFunction());
        assertEquals("1", map.remove("a"));
        assertNull(map.remove("b"));
      }
    
      public void testTransformEqualityOfMapsWithNullValues() {
        Map<String, @Nullable String> underlying = Maps.newHashMap();
        underlying.put("a", null);
    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)
  8. android/guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

      @Override
      protected Map<String, String> makeEmptyMap() {
        return Maps.transformValues(Maps.<String, String>newHashMap(), Functions.<String>identity());
      }
    
      @Override
      protected Map<String, String> makePopulatedMap() {
        Map<String, Integer> underlying = Maps.newHashMap();
        underlying.put("a", 1);
        underlying.put("b", 2);
        underlying.put("c", 3);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

      protected Map<String, String> makeEmptyMap() {
        Map<String, Integer> underlying = Maps.newHashMap();
        return Maps.transformValues(
            new UnmodifiableIteratorMap<String, Integer>(underlying), Functions.toStringFunction());
      }
    
      @Override
      protected Map<String, String> makePopulatedMap() {
        Map<String, Integer> underlying = Maps.newHashMap();
        underlying.put("a", 1);
        underlying.put("b", 2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        Map<String, Integer> underlying = Maps.newHashMap();
        underlying.put("a", 1);
        Map<String, String> map = Maps.transformValues(underlying, Functions.toStringFunction());
        assertEquals("1", map.remove("a"));
        assertNull(map.remove("b"));
      }
    
      public void testTransformEqualityOfMapsWithNullValues() {
        Map<String, @Nullable String> underlying = Maps.newHashMap();
        underlying.put("a", null);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top