public void incr ( ResourceType resourceType ) { Integer current = typeToCountMap . get ( resourceType ) ; if ( current == null ) { typeToCountMap . put ( resourceType , new Integer ( 1 ) ) ; } else { typeToCountMap . put ( resourceType , current + 1 ) ; } }
Increment the count for a given resource type