- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for toStringFunction (0.05 sec)
-
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}.
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 163.5K bytes - Viewed (0)