@Test @SuppressWarnings("unchecked") public void toStringDelegatesToDecoratedMap() { NameValueReferableMap factMap = mock(NameValueReferableMap.class); when(factMap.toString()).thenReturn("delegated!"); NameValueReferableMap facts = new TypeConvertibleFactMap(factMap); Assert.assertEquals("delegated!", facts.toString()); }
@Override public String toString() { return _map.toString(); }
TypeConvertibleFactMap implements NameValueReferableTypeConvertibleMap<T> { @Override public String toString() { return _map.toString(); } }
TypeConvertibleFactMap implements NameValueReferableTypeConvertibleMap<T> { @Override public String toString() { return _map.toString(); } TypeConvertibleFactMap(NameValueReferableMap<T> map); }
TypeConvertibleFactMap implements NameValueReferableTypeConvertibleMap<T> { @Override public String toString() { return _map.toString(); } TypeConvertibleFactMap(NameValueReferableMap<T> map); @Override String getStrVal(String name); @Override T getOne(); @Override T getValue(String name); @Override Integer getIntVal(String name); @Override Double getDblVal(String name); @Override Boolean getBoolVal(String name); @Override BigDecimal getBigDeciVal(String name); @Override void setValue(String name, T obj); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override NameValueReferable<T> get(Object key); @Override NameValueReferable<T> put(NameValueReferable<T> ref); @Override NameValueReferable<T> put(String key, NameValueReferable<T> value); @Override NameValueReferable<T> remove(Object key); @Override void putAll(Map<? extends String, ? extends NameValueReferable<T>> map); @Override void clear(); @Override Set<String> keySet(); @Override Collection<NameValueReferable<T>> values(); @Override Set<Entry<String, NameValueReferable<T>>> entrySet(); @Override String toString(); }
TypeConvertibleFactMap implements NameValueReferableTypeConvertibleMap<T> { @Override public String toString() { return _map.toString(); } TypeConvertibleFactMap(NameValueReferableMap<T> map); @Override String getStrVal(String name); @Override T getOne(); @Override T getValue(String name); @Override Integer getIntVal(String name); @Override Double getDblVal(String name); @Override Boolean getBoolVal(String name); @Override BigDecimal getBigDeciVal(String name); @Override void setValue(String name, T obj); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override NameValueReferable<T> get(Object key); @Override NameValueReferable<T> put(NameValueReferable<T> ref); @Override NameValueReferable<T> put(String key, NameValueReferable<T> value); @Override NameValueReferable<T> remove(Object key); @Override void putAll(Map<? extends String, ? extends NameValueReferable<T>> map); @Override void clear(); @Override Set<String> keySet(); @Override Collection<NameValueReferable<T>> values(); @Override Set<Entry<String, NameValueReferable<T>>> entrySet(); @Override String toString();  }