@Test public void emptyMapTest() { TransformedMap transformed_map = new TransformedMap(Collections.emptyMap(), trans); Assert.assertTrue(transformed_map.isEmpty()); Assert.assertEquals(transformed_map.size(), 0); Assert.assertFalse(transformed_map.keySet().iterator().hasNext()); Assert.assertFalse(transformed_map.values().iterator().hasNext()); Assert.assertFalse(transformed_map.entrySet().iterator().hasNext()); }
@Override public Set<Entry<K,Vo>> entrySet() { return new EntrySet(); }
TransformedMap extends AbstractMap<K,Vo> { @Override public Set<Entry<K,Vo>> entrySet() { return new EntrySet(); } }
TransformedMap extends AbstractMap<K,Vo> { @Override public Set<Entry<K,Vo>> entrySet() { return new EntrySet(); } TransformedMap(Map<K,Vi> input, Transformer<Duo<K,Vi>,Vo> transformer); }
TransformedMap extends AbstractMap<K,Vo> { @Override public Set<Entry<K,Vo>> entrySet() { return new EntrySet(); } TransformedMap(Map<K,Vi> input, Transformer<Duo<K,Vi>,Vo> transformer); @Override Vo get(Object key); @Override Set<Entry<K,Vo>> entrySet(); }
TransformedMap extends AbstractMap<K,Vo> { @Override public Set<Entry<K,Vo>> entrySet() { return new EntrySet(); } TransformedMap(Map<K,Vi> input, Transformer<Duo<K,Vi>,Vo> transformer); @Override Vo get(Object key); @Override Set<Entry<K,Vo>> entrySet();  }