Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 448 for maps (0.14 sec)

  1. src/main/java/org/codelibs/core/collection/Maps.java

         */
        protected Maps(final Map<K, V> map) {
            this.map = map;
        }
    
        /**
         * {@link Map}にキーと値を追加します。
         *
         * @param key
         *            <code>Map</code>に追加されるキー
         * @param value
         *            <code>Map</code>に追加される値
         * @return このインスタンス自身
         */
        public Maps<K, V> $(final K key, final V value) {
            map.put(key, value);
            return this;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Maps.java

          implements MapDifference<K, V> {
        final Map<K, V> onlyOnLeft;
        final Map<K, V> onlyOnRight;
        final Map<K, V> onBoth;
        final Map<K, ValueDifference<V>> differences;
    
        MapDifferenceImpl(
            Map<K, V> onlyOnLeft,
            Map<K, V> onlyOnRight,
            Map<K, V> onBoth,
            Map<K, ValueDifference<V>> differences) {
          this.onlyOnLeft = unmodifiableMap(onlyOnLeft);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        Map<String, Integer> equalToUnderlying = Maps.newTreeMap();
        equalToUnderlying.putAll(underlying);
        Map<String, Integer> map =
            Maps.transformValues(equalToUnderlying, Functions.<Integer>identity());
        assertMapsEqual(expected, map);
    
        map =
            Maps.transformValues(
                ImmutableMap.of("a", 1, "b", 2, "c", 3),
                new Function<Integer, Integer>() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

        TreeMap<Integer, Integer> map = Maps.newTreeMap(SOME_COMPARATOR);
        assertEquals(Collections.emptyMap(), map);
        assertSame(SOME_COMPARATOR, map.comparator());
      }
    
      public void testTreeMapWithInitialMap() {
        SortedMap<Integer, Integer> map = Maps.newTreeMap();
        map.put(5, 10);
        map.put(3, 20);
        map.put(1, 30);
        TreeMap<Integer, Integer> copy = Maps.newTreeMap(map);
        assertEquals(copy, map);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MapsTest.java

        TreeMap<Integer, Integer> map = Maps.newTreeMap(SOME_COMPARATOR);
        assertEquals(Collections.emptyMap(), map);
        assertSame(SOME_COMPARATOR, map.comparator());
      }
    
      public void testTreeMapWithInitialMap() {
        SortedMap<Integer, Integer> map = Maps.newTreeMap();
        map.put(5, 10);
        map.put(3, 20);
        map.put(1, 30);
        TreeMap<Integer, Integer> copy = Maps.newTreeMap(map);
        assertEquals(copy, map);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                      @Override
                      protected Map<String, String> create(Entry<String, String>[] entries) {
                        Map<String, String> map = Maps.newHashMap();
                        putEntries(map, entries);
                        map.putAll(ENTRIES_TO_FILTER);
                        map = Maps.filterEntries(map, FILTER_ENTRIES_1);
                        return Maps.filterEntries(map, FILTER_ENTRIES_2);
                      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java

        public SampleElements<Entry<Country, String>> samples() {
          return new SampleElements<>(
              Maps.immutableEntry(Country.CANADA, "DOLLAR"),
              Maps.immutableEntry(Country.CHILE, "PESO"),
              Maps.immutableEntry(Country.UK, "POUND"),
              Maps.immutableEntry(Country.JAPAN, "YEN"),
              Maps.immutableEntry(Country.SWITZERLAND, "FRANC"));
        }
    
        @SuppressWarnings("unchecked")
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/FilteredSortedMapTest.java

      SortedMap<String, Integer> createUnfiltered() {
        return Maps.newTreeMap();
      }
    
      public void testFirstAndLastKeyFilteredMap() {
        SortedMap<String, Integer> unfiltered = createUnfiltered();
        unfiltered.put("apple", 2);
        unfiltered.put("banana", 6);
        unfiltered.put("cat", 3);
        unfiltered.put("dog", 5);
    
        SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

    import com.google.common.base.Functions;
    import java.util.Map;
    
    /**
     * Tests for {@link Maps#transformValues(Map, Function)}.
     *
     * @author Isaac Shum
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class MapsTransformValuesTest extends AbstractMapsTransformValuesTest {
      @Override
      protected Map<String, String> makeEmptyMap() {
        return Maps.transformValues(Maps.<String, String>newHashMap(), Functions.<String>identity());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        Map<String, Integer> equalToUnderlying = Maps.newTreeMap();
        equalToUnderlying.putAll(underlying);
        Map<String, Integer> map =
            Maps.transformValues(equalToUnderlying, Functions.<Integer>identity());
        assertMapsEqual(expected, map);
    
        map =
            Maps.transformValues(
                ImmutableMap.of("a", 1, "b", 2, "c", 3),
                new Function<Integer, Integer>() {
    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)
Back to top