Class UnmodifiableMergingMapView<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
org.eclipse.xtext.xbase.lib.internal.UnmodifiableMergingMapView<K,V>
Type Parameters:
K - the type of the keys.
V - the type of the values in the maps.
All Implemented Interfaces:
Map<K,V>

@GwtCompatible public class UnmodifiableMergingMapView<K,V> extends AbstractMap<K,V>
Map implementation that is merging two maps.

If a key exists within the two merged maps, then the retained value is the one of the right map.

Since:
2.15
Author:
Stephane Galland - Initial contribution and API
  • Constructor Details

    • UnmodifiableMergingMapView

      public UnmodifiableMergingMapView(Map<? extends K,? extends V> left, Map<? extends K,? extends V> right)
      Construct the wrapping map.
      Parameters:
      left - the left operand to merge.
      right - the right operand to merge.
  • Method Details