Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for toStringFunction (0.15 sec)

  1. android/guava/src/com/google/common/base/Equivalence.java

       * relation. That is, invoking {@link Function#apply} multiple times for a given value must return
       * equivalent results. For example, {@code
       * Equivalence.identity().onResultOf(Functions.toStringFunction())} is broken because it's not
       * guaranteed that {@link Object#toString}) always returns the same string instance.
       *
       * @since 10.0
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. android/guava/src/com/google/common/collect/FluentIterable.java

       * Color red = new Color("red", 255, 0, 0);
       * ...
       * FluentIterable<Color> allColors = FluentIterable.from(ImmutableSet.of(red, green, blue));
       *
       * Map<String, Color> colorForName = allColors.uniqueIndex(toStringFunction());
       * assertThat(colorForName).containsEntry("red", red);
       * }</pre>
       *
       * <p>If your index may associate multiple values with each key, use {@link #index(Function)
       * index}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. android/guava/src/com/google/common/collect/Maps.java

       * Color red = new Color("red", 255, 0, 0);
       * ...
       * Iterator<Color> allColors = ImmutableSet.of(red, green, blue).iterator();
       *
       * Map<String, Color> colorForName =
       *     uniqueIndex(allColors, toStringFunction());
       * assertThat(colorForName).containsEntry("red", red);
       * }</pre>
       *
       * <p>If your index may associate multiple values with each key, use {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Maps.java

       * Color red = new Color("red", 255, 0, 0);
       * ...
       * Iterator<Color> allColors = ImmutableSet.of(red, green, blue).iterator();
       *
       * Map<String, Color> colorForName =
       *     uniqueIndex(allColors, toStringFunction());
       * assertThat(colorForName).containsEntry("red", red);
       * }</pre>
       *
       * <p>If your index may associate multiple values with each key, use {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
Back to top