### Question:
PrimitiveIntObjectHashMap extends AbstractIntHopScotchCollection<VALUE> implements PrimitiveIntObjectMap<VALUE> { @Override public VALUE put( int key, VALUE value ) { return HopScotchHashingAlgorithm.put( table, monitor, DEFAULT_HASHING, key, value, this ); } PrimitiveIntObjectHashMap( Table<VALUE> table, Monitor monitor ); @Override VALUE put( int key, VALUE value ); @Override boolean containsKey( int key ); @Override VALUE get( int key ); @Override VALUE remove( int key ); @Override int size(); @Override String toString(); @Override void visitEntries( PrimitiveIntObjectVisitor<VALUE, E> visitor ); @SuppressWarnings( "EqualsWhichDoesntCheckParameterClass" ) // yes it does @Override boolean equals( Object other ); @Override int hashCode();  }### Answer:
@Test void doNotComputeValueIfPresent() { PrimitiveIntObjectMap<Object> intObjectMap = Primitive.intObjectMap(); intObjectMap.put( 1, "a" ); assertEquals( "a", intObjectMap.computeIfAbsent( 1, value -> "b" ) ); }
@Test void computeValueIfAbsent() { PrimitiveIntObjectMap<Object> intObjectMap = Primitive.intObjectMap(); intObjectMap.put( 1, "a" ); assertEquals( "b", intObjectMap.computeIfAbsent( 2, value -> "b" ) ); }