public long getMax ( ) { int lastBin = hits . length ( ) - 1 ; if ( hits . get ( lastBin ) > 0 ) { return Long . MAX_VALUE ; } for ( int i = lastBin - 1 ; i >= 0 ; i -- ) { if ( hits . get ( i ) > 0 ) { return bins [ i ] ; } } return 0 ; }
The end - point of interval that contains the largest value added to this histogram . If the histogram overflowed returns Long . MAX_VALUE .