@Test(expected = UnsupportedOperationException.class) public void testPutAll() throws Exception { assertTrue(mapState.contains(1L)); long value = mapState.get(1L); assertEquals(5L, value); assertTrue(mapState.contains(2L)); value = mapState.get(2L); assertEquals(5L, value); Map<Long, Long> nMap = new HashMap<>(); nMap.put(1L, 7L); nMap.put(2L, 7L); mapState.putAll(nMap); }
@Override public void putAll(Map<K, V> map) { throw MODIFICATION_ATTEMPT_ERROR; }
ImmutableMapState extends ImmutableState implements MapState<K, V> { @Override public void putAll(Map<K, V> map) { throw MODIFICATION_ATTEMPT_ERROR; } }
ImmutableMapState extends ImmutableState implements MapState<K, V> { @Override public void putAll(Map<K, V> map) { throw MODIFICATION_ATTEMPT_ERROR; } private  ImmutableMapState(final Map<K, V> mapState); }
ImmutableMapState extends ImmutableState implements MapState<K, V> { @Override public void putAll(Map<K, V> map) { throw MODIFICATION_ATTEMPT_ERROR; } private  ImmutableMapState(final Map<K, V> mapState); @Override V get(K key); @Override void put(K key, V value); @Override void putAll(Map<K, V> map); @Override void remove(K key); @Override boolean contains(K key); @Override Iterable<Map.Entry<K, V>> entries(); @Override Iterable<K> keys(); @Override Iterable<V> values(); @Override Iterator<Map.Entry<K, V>> iterator(); @Override void clear(); @SuppressWarnings("unchecked") static S createState(
		StateDescriptor<S, T> stateDescriptor,
		byte[] serializedState); }
ImmutableMapState extends ImmutableState implements MapState<K, V> { @Override public void putAll(Map<K, V> map) { throw MODIFICATION_ATTEMPT_ERROR; } private  ImmutableMapState(final Map<K, V> mapState); @Override V get(K key); @Override void put(K key, V value); @Override void putAll(Map<K, V> map); @Override void remove(K key); @Override boolean contains(K key); @Override Iterable<Map.Entry<K, V>> entries(); @Override Iterable<K> keys(); @Override Iterable<V> values(); @Override Iterator<Map.Entry<K, V>> iterator(); @Override void clear(); @SuppressWarnings("unchecked") static S createState(
		StateDescriptor<S, T> stateDescriptor,
		byte[] serializedState);  }