@Override public void remove() { if (lastIndex < 0) { throw new IllegalStateException(); } updateValue(lastIndex, null); lastIndex = -1; } }
@Override public V put(Right right, V value) { return updateValue(right.ordinal(), maskNull(value)); }
@Override @SuppressWarnings("unchecked") public void putAll(Map<? extends Right, ? extends V> map) { if (map instanceof RightMap) { RightMap<? extends V> rmap = (RightMap<? extends V>) map; for (int i = 0; i < Right.size(); i++) { updateValue(i, rmap.getValue(i)); } } else { super.putAll(map); } }