@Test public void stringMap() { Map<Any2<Integer, String>, String> expected = new HashMap<>(); expected.put(Any2.left(5), "true"); expected.put(Any2.right("five"), "true"); expected.put(Any2.left(6), "false"); expected.put(Any2.right("six"), "false"); expected.put(Any2.left(8), "18"); expected.put(Any2.right("eight"), "18"); expected.put(Any2.left(9), "foobarium"); expected.put(Any2.right("nine"), "foobarium"); assertEquals(expected, map.getStringMap()); }
public Map<Any2<Integer, String>, String> getStringMap() { return data.entrySet().stream() .collect(Collectors.toMap(Map.Entry::getKey, entry -> entry.getValue().mapCombine(Object::toString, Object::toString, Object::toString))); }
NamedResolverMap { public Map<Any2<Integer, String>, String> getStringMap() { return data.entrySet().stream() .collect(Collectors.toMap(Map.Entry::getKey, entry -> entry.getValue().mapCombine(Object::toString, Object::toString, Object::toString))); } }
NamedResolverMap { public Map<Any2<Integer, String>, String> getStringMap() { return data.entrySet().stream() .collect(Collectors.toMap(Map.Entry::getKey, entry -> entry.getValue().mapCombine(Object::toString, Object::toString, Object::toString))); }  }
NamedResolverMap { public Map<Any2<Integer, String>, String> getStringMap() { return data.entrySet().stream() .collect(Collectors.toMap(Map.Entry::getKey, entry -> entry.getValue().mapCombine(Object::toString, Object::toString, Object::toString))); }  boolean getBooleanOrDefault(int key, boolean dfl); boolean getBooleanOrDefault(@NonNull String key, boolean dfl); int getIntegerOrDefault(int key, int dfl); int getIntegerOrDefault(@NonNull String key, int dfl); String getStringOrDefault(int key, @NonNull String dfl); String getStringOrDefault(@NonNull String key, @NonNull String dfl); boolean getBoolean(int key); boolean getBoolean(@NonNull String key); int getInteger(int key); int getInteger(@NonNull String key); String getString(int key); String getString(@NonNull String key); Set<Integer> intKeySet(); Set<String> stringKeySet(); GroupName getGroupName(@NonNull List<String> prefixPath, @NonNull Map<String, MetricValue> extraTags); GroupName getGroupName(@NonNull SimpleGroupPath prefixPath, @NonNull Map<String, MetricValue> extraTags); GroupName getGroupName(@NonNull List<String> prefixPath); GroupName getGroupName(@NonNull SimpleGroupPath prefixPath); GroupName getGroupName(@NonNull Map<String, MetricValue> extraTags); GroupName getGroupName(); Map<Any2<Integer, String>, Any3<Boolean, Integer, String>> getRawMap(); Map<Any2<Integer, String>, String> getStringMap(); @Override String toString(); }
NamedResolverMap { public Map<Any2<Integer, String>, String> getStringMap() { return data.entrySet().stream() .collect(Collectors.toMap(Map.Entry::getKey, entry -> entry.getValue().mapCombine(Object::toString, Object::toString, Object::toString))); }  boolean getBooleanOrDefault(int key, boolean dfl); boolean getBooleanOrDefault(@NonNull String key, boolean dfl); int getIntegerOrDefault(int key, int dfl); int getIntegerOrDefault(@NonNull String key, int dfl); String getStringOrDefault(int key, @NonNull String dfl); String getStringOrDefault(@NonNull String key, @NonNull String dfl); boolean getBoolean(int key); boolean getBoolean(@NonNull String key); int getInteger(int key); int getInteger(@NonNull String key); String getString(int key); String getString(@NonNull String key); Set<Integer> intKeySet(); Set<String> stringKeySet(); GroupName getGroupName(@NonNull List<String> prefixPath, @NonNull Map<String, MetricValue> extraTags); GroupName getGroupName(@NonNull SimpleGroupPath prefixPath, @NonNull Map<String, MetricValue> extraTags); GroupName getGroupName(@NonNull List<String> prefixPath); GroupName getGroupName(@NonNull SimpleGroupPath prefixPath); GroupName getGroupName(@NonNull Map<String, MetricValue> extraTags); GroupName getGroupName(); Map<Any2<Integer, String>, Any3<Boolean, Integer, String>> getRawMap(); Map<Any2<Integer, String>, String> getStringMap(); @Override String toString(); static NamedResolverMap EMPTY; }