@Test(expected = IllegalArgumentException.class) public void put_when_lying_about_type() { Class clazz = Float.class; MutableContext<?> ctx = new MutableContext<>(ts_data, alert_manager); ctx.put("identifier", clazz, DATA, ALIAS); }
public <T, U> void put(String identifier, Class<T> type, T value, U alias) { all_identifiers_.put(identifier, new Value<T, U>(type, value, alias)); }
MutableContext extends SimpleContext<TSDataPair> { public <T, U> void put(String identifier, Class<T> type, T value, U alias) { all_identifiers_.put(identifier, new Value<T, U>(type, value, alias)); } }
MutableContext extends SimpleContext<TSDataPair> { public <T, U> void put(String identifier, Class<T> type, T value, U alias) { all_identifiers_.put(identifier, new Value<T, U>(type, value, alias)); } MutableContext(TSDataPair ts_data, Consumer<Alert> alert_manager);  MutableContext(Context<? extends TSDataPair> copy);  MutableContext(TSDataPair ts_data, Context copy); }
MutableContext extends SimpleContext<TSDataPair> { public <T, U> void put(String identifier, Class<T> type, T value, U alias) { all_identifiers_.put(identifier, new Value<T, U>(type, value, alias)); } MutableContext(TSDataPair ts_data, Consumer<Alert> alert_manager);  MutableContext(Context<? extends TSDataPair> copy);  MutableContext(TSDataPair ts_data, Context copy); void put(String identifier, Class<T> type, T value, U alias); void put(String identifier, Class<T> type, Optional<T> value, U alias); void putSupplied(String identifier, Class<T> type, Function<Context, Optional<? extends T>> function, Supplier<U> alias); void putGroupAlias(String identifier, Optional<SimpleGroupPath> group); void putGroupAlias(String identifier, SimpleGroupPath group); void putGroupAliasByName(String identifier, Supplier<GroupName> group); void putMetricAliasByName(String identifier, Supplier<GroupName> group, Supplier<MetricName> metric); void remove(String identifier); @Override Map<String, ContextIdentifier> getAllIdentifiers(); }
MutableContext extends SimpleContext<TSDataPair> { public <T, U> void put(String identifier, Class<T> type, T value, U alias) { all_identifiers_.put(identifier, new Value<T, U>(type, value, alias)); } MutableContext(TSDataPair ts_data, Consumer<Alert> alert_manager);  MutableContext(Context<? extends TSDataPair> copy);  MutableContext(TSDataPair ts_data, Context copy); void put(String identifier, Class<T> type, T value, U alias); void put(String identifier, Class<T> type, Optional<T> value, U alias); void putSupplied(String identifier, Class<T> type, Function<Context, Optional<? extends T>> function, Supplier<U> alias); void putGroupAlias(String identifier, Optional<SimpleGroupPath> group); void putGroupAlias(String identifier, SimpleGroupPath group); void putGroupAliasByName(String identifier, Supplier<GroupName> group); void putMetricAliasByName(String identifier, Supplier<GroupName> group, Supplier<MetricName> metric); void remove(String identifier); @Override Map<String, ContextIdentifier> getAllIdentifiers();  }