Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for toStringFunction (0.09 sec)

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

        Map<String, String> map =
            transformValues(ImmutableMap.<String, Integer>of(), Functions.toStringFunction());
        assertMapsEqual(Maps.newHashMap(), map);
      }
    
      public void testTransformSingletonMapEquality() {
        Map<String, String> map =
            transformValues(ImmutableMap.of("a", 1), Functions.toStringFunction());
        Map<String, String> expected = ImmutableMap.of("a", "1");
        assertMapsEqual(expected, map);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        Map<String, String> map =
            transformValues(ImmutableMap.<String, Integer>of(), Functions.toStringFunction());
        assertMapsEqual(Maps.newHashMap(), map);
      }
    
      public void testTransformSingletonMapEquality() {
        Map<String, String> map =
            transformValues(ImmutableMap.of("a", 1), Functions.toStringFunction());
        Map<String, String> expected = ImmutableMap.of("a", "1");
        assertMapsEqual(expected, map);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

        Map<String, Integer> underlying = Maps.newHashMap();
        underlying.put("a", 1);
        underlying.put("b", 2);
        underlying.put("c", 3);
        return transformValues(underlying, Functions.toStringFunction());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapsSortedTransformValuesTest.java

        SortedMap<String, Integer> underlying = Maps.newTreeMap();
        underlying.put("a", 1);
        underlying.put("b", 2);
        underlying.put("c", 3);
        return transformValues(underlying, Functions.toStringFunction());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

        Map<String, Integer> underlying = Maps.newHashMap();
        underlying.put("a", 1);
        underlying.put("b", 2);
        underlying.put("c", 3);
        return transformValues(underlying, Functions.toStringFunction());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

                .put("1", "1")
                .put("2", 2)
                .put("2", 2L)
                .build();
    
        ImmutableMultimap<String, Object> outputMap =
            Multimaps.index(stringToObject.values(), Functions.toStringFunction());
        assertEquals(stringToObject, outputMap);
      }
    
      public void testIndexIterator() {
        final Multimap<String, Object> stringToObject =
            new ImmutableMultimap.Builder<String, Object>()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

                        Table<String, Integer, Character> table = HashBasedTable.create();
                        populateForRowKeySet(table, elements);
                        return transformValues(table, Functions.toStringFunction()).column(1).keySet();
                      }
                    })
                .named("TransformValues.column.keySet")
                .withFeatures(COLLECTION_FEATURES_REMOVE)
                .createTestSuite());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TableCollectionTest.java

                        Table<String, Integer, Character> table = HashBasedTable.create();
                        populateForRowKeySet(table, elements);
                        return transformValues(table, Functions.toStringFunction()).column(1).keySet();
                      }
                    })
                .named("TransformValues.column.keySet")
                .withFeatures(COLLECTION_FEATURES_REMOVE)
                .createTestSuite());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testToMultiset_empty() {
        assertThat(fluent().toMultiset()).isEmpty();
      }
    
      public void testToMap() {
        assertThat(fluent(1, 2, 3).toMap(Functions.toStringFunction()).entrySet())
            .containsExactly(immutableEntry(1, "1"), immutableEntry(2, "2"), immutableEntry(3, "3"))
            .inOrder();
      }
    
      public void testToMap_nullKey() {
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Ordering.java

       * string forms, in a case-insensitive manner, use:
       *
       * <pre>{@code
       * Ordering.from(String.CASE_INSENSITIVE_ORDER)
       *     .onResultOf(Functions.toStringFunction())
       * }</pre>
       *
       * <p><b>Java 8+ users:</b> Use {@code Comparator.comparing(function, thisComparator)} instead
       * (you can omit the comparator if it is the natural order).
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top