@Test(expected = IllegalArgumentException.class) public void fiveStrStrFails() { map.getInteger("five"); }
public int getInteger(int key) { Any3<Boolean, Integer, String> value = data.get(Any2.<Integer, String>left(key)); if (value == null) throw new IllegalArgumentException("missing argument for param " + key); return value.get2().orElseThrow(() -> new IllegalArgumentException("expected integer argument for param " + key)); }
NamedResolverMap { public int getInteger(int key) { Any3<Boolean, Integer, String> value = data.get(Any2.<Integer, String>left(key)); if (value == null) throw new IllegalArgumentException("missing argument for param " + key); return value.get2().orElseThrow(() -> new IllegalArgumentException("expected integer argument for param " + key)); } }
NamedResolverMap { public int getInteger(int key) { Any3<Boolean, Integer, String> value = data.get(Any2.<Integer, String>left(key)); if (value == null) throw new IllegalArgumentException("missing argument for param " + key); return value.get2().orElseThrow(() -> new IllegalArgumentException("expected integer argument for param " + key)); }  }
NamedResolverMap { public int getInteger(int key) { Any3<Boolean, Integer, String> value = data.get(Any2.<Integer, String>left(key)); if (value == null) throw new IllegalArgumentException("missing argument for param " + key); return value.get2().orElseThrow(() -> new IllegalArgumentException("expected integer argument for param " + key)); }  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 int getInteger(int key) { Any3<Boolean, Integer, String> value = data.get(Any2.<Integer, String>left(key)); if (value == null) throw new IllegalArgumentException("missing argument for param " + key); return value.get2().orElseThrow(() -> new IllegalArgumentException("expected integer argument for param " + key)); }  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; }