@Deprecated public void put(Collection<Integer> data){
  for (  Integer value : data) {
    final int val=value.intValue();
    min=val < min ? val : min;
    max=val > max ? val : max;
  }
}

@ Deprecated public void put ( Collection < Integer > data ) { for ( Integer value : data ) { final int val = value . intValue ( ) ; min = val < min ? val : min ; max = val > max ? val : max ; } }
process a whole collection of integer values . if any of the values is smaller than the current minimum , it will become the new minimum . if any of the values is larger than the current maximum , it will become the new maximum .
