TypedMap implements Iterable<Entry<Object, V>> { @NonNull Maybe<V> getOrIgnore(Object key) { return get(key).toMaybe().onErrorComplete(); } TypedMap(Map<Object, V> map); @NonNull TypedMap<V> clear(); @Override @NonNull Iterator<Entry<Object, V>> iterator();  }
@Test public void getOrIgnoreInvalidItemByObjectKeyThenReturnEmptyMaybe() { TypedMap<Integer> map = new TypedMap<>(new HashMap<Object,Integer>()); assertNull(map.getOrIgnore(new A()).blockingGet()); }