question: private void updateEntries ( Cache < Integer , Integer > cache , int newVal , boolean invoke , Set < Integer > keys ) { if ( invoke ) cache . invokeAll ( keys , new IntegerSetValue ( newVal ) ) ; else { final Map < Integer , Integer > entries = new HashMap < > ( ENTRY_COUNT ) ; for ( final Integer key : keys ) entries . put ( key , newVal ) ; cache . putAll ( entries ) ; } }
target:  Update the cache using either invokeAll() or putAll().