- Sort Score
- Num 10 results
- Language All
Results 21 - 22 of 22 for toStringFunction (0.24 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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); * } * * <p>If your index may associate multiple values with each key, use {@link * Multimaps#index(Iterator, Function) Multimaps.index}.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 163.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/Ordering.java
* string forms, in a case-insensitive manner, use: * * {@snippet : * Ordering.from(String.CASE_INSENSITIVE_ORDER).onResultOf(Functions.toStringFunction()) * } * * <p><b>Java 8+ users:</b> Use {@code Comparator.comparing(function, thisComparator)} instead * (you can omit the comparator if it is the natural order). */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 39.4K bytes - Click Count (0)