void add ( long value ) { if ( value >= 0 ) { if ( count > 0 ) { min = Math . min ( min , value ) ; max = Math . max ( max , value ) ; } else { min = value ; max = value ; } count ++ ; sum += value ; } }
Adds the value to the stats if it is > = 0 .