@Test(expected = UnsupportedOperationException.class) public void get_shouldReturnRightValue() { TypedValues values = createValues(); fillTypedValues(values); Object aDouble = values.get("double"); }
@Override @Deprecated @SuppressWarnings("squid:S1133") public Object get(String channel) { throw new UnsupportedOperationException("This is a typed object untyped getter not supported!"); }
TypedValues implements MRecord, Serializable { @Override @Deprecated @SuppressWarnings("squid:S1133") public Object get(String channel) { throw new UnsupportedOperationException("This is a typed object untyped getter not supported!"); } }
TypedValues implements MRecord, Serializable { @Override @Deprecated @SuppressWarnings("squid:S1133") public Object get(String channel) { throw new UnsupportedOperationException("This is a typed object untyped getter not supported!"); } TypedValues(String source, long timestamp, Map<String, Value> values); }
TypedValues implements MRecord, Serializable { @Override @Deprecated @SuppressWarnings("squid:S1133") public Object get(String channel) { throw new UnsupportedOperationException("This is a typed object untyped getter not supported!"); } TypedValues(String source, long timestamp, Map<String, Value> values); @Override Double getDouble(String channel); @Override Long getLong(String channel); @Override @SuppressWarnings("squid:S2447") // null should not be returned, in this case it is necessary Boolean getBoolean(String channel); @Override Date getDate(String channel); @Override String getString(String channel); @Override Value getValue(String channel); @Override @Deprecated @SuppressWarnings("squid:S1133") // suppress deprecated warning Object get(String channel); @Override Collection<String> getChannels(); TypedValues merge(TypedValues typedValues); }
TypedValues implements MRecord, Serializable { @Override @Deprecated @SuppressWarnings("squid:S1133") public Object get(String channel) { throw new UnsupportedOperationException("This is a typed object untyped getter not supported!"); } TypedValues(String source, long timestamp, Map<String, Value> values); @Override Double getDouble(String channel); @Override Long getLong(String channel); @Override @SuppressWarnings("squid:S2447") // null should not be returned, in this case it is necessary Boolean getBoolean(String channel); @Override Date getDate(String channel); @Override String getString(String channel); @Override Value getValue(String channel); @Override @Deprecated @SuppressWarnings("squid:S1133") // suppress deprecated warning Object get(String channel); @Override Collection<String> getChannels(); TypedValues merge(TypedValues typedValues);  }