@Override @SuppressWarnings(value = "unchecked") public IterableMap<K, V> getMap() { final IterableMap<K, V> testMap = new DualHashBidiMap<K, V>(); testMap.put(((K)("A")), ((V)("a"))); testMap.put(((K)("B")), ((V)("b"))); testMap.put(((K)("C")), ((V)("c"))); return testMap; }
@Override public IterableMap<K, V> makeObject() { return DefaultedMap.defaultedMap(new HashMap<K, V>(), nullFactory); }
@Override public IterableMap<K, V> getMap() { return org.apache.commons.collections4.map.Flat3MapTest.this.getMap(); }
@Override public IterableMap<K, V> makeObject() { return ((IterableMap<K, V>)(org.apache.commons.collections4.map.UnmodifiableMap.unmodifiableMap(new HashMap<K, V>()))); }
@Override public IterableMap<K, V> makeFullMap() { final Map<K, V> m = new HashMap<K, V>(); addSampleMappings(m); return ((IterableMap<K, V>)(org.apache.commons.collections4.map.UnmodifiableMap.unmodifiableMap(m))); }
@Override public IterableMap<K, V> makeObject() { return org.apache.commons.collections4.map.FixedSizeMap.fixedSizeMap(new HashMap<K, V>()); }
@Override public IterableMap<K, V> makeFullMap() { final Map<K, V> map = new HashMap<K, V>(); addSampleMappings(map); return org.apache.commons.collections4.map.FixedSizeMap.fixedSizeMap(map); }
protected IterableMap<K, V> decorateMap(final Map<K, V> map, final Predicate<? super K> keyPredicate, final Predicate<? super V> valuePredicate) { return org.apache.commons.collections4.map.PredicatedMap.predicatedMap(map, keyPredicate, valuePredicate); }
@Override public IterableMap<K, V> makeObject() { return decorateMap(new HashMap<K, V>(), truePredicate, truePredicate); }
public IterableMap<K, V> makeTestMap() { return decorateMap(new HashMap<K, V>(), testPredicate, testPredicate); }
/** * {@inheritDoc} */ @Override public IterableMap<K, V> makeFullMap() { return ((IterableMap<K, V>)(super.makeFullMap())); }
/** * {@inheritDoc} */ @Override public IterableMap<K, V> getMap() { return ((IterableMap<K, V>)(super.getMap())); }
@Override public IterableMap<K, V> makeObject() { return org.apache.commons.collections4.map.TransformedMap.transformingMap(new HashMap<K, V>(), org.apache.commons.collections4.TransformerUtils.<K>nopTransformer(), org.apache.commons.collections4.TransformerUtils.<V>nopTransformer()); }
/** * {@inheritDoc} */ @Override public abstract IterableMap<K, V> makeObject();