public void max ( double v ) { if ( Double . isFinite ( v ) ) { double max = get ( ) ; while ( isGreaterThan ( v , max ) && ! compareAndSet ( max , v ) ) { max = value . get ( ) ; } } }
Set the current value to the maximum of the current value or the provided value .