private void logMax(String type,String value,String arg,long amount){
  Key key=new Key(type,value,arg + MAXIMUM_INDICATOR);
synchronized (counts) {
    Long oldMax=counts.get(key);
    if (oldMax == null) {
      oldMax=amount;
    }
    counts.put(key,Math.max(oldMax,amount));
  }
}

private void logMax ( String type , String value , String arg , long amount ) { Key key = new Key ( type , value , arg + MAXIMUM_INDICATOR ) ; synchronized ( counts ) { Long oldMax = counts . get ( key ) ; if ( oldMax == null ) { oldMax = amount ; } counts . put ( key , Math . max ( oldMax , amount ) ) ; } }
logs the maximum amount that was logged for ( type , value , arg ) under ( type , value , arg_max ) .
