numerus/src/main/java/com/netflix/numerus/LongMaxUpdater.java
public long max() {
        Cell[] as = cells;
        long max = base;
        if (as != null) {
            int n = as.length;
            long v;
            for (int i = 0; i < n; ++i) {
                Cell a = as[i];
                if (a != null && (v = a.value) > max)
                    max = v;
            }
        }
        return max;
    }
public long max() {
        Cell[] as = cells;
        long max = base;
        if (as != null) {
            int n = as.length;
            long v;
            for (int i = 0; i < n; ++i) {
                Cell a = as[i];
                if (a != null && (v = a.value) > max)
                    max = v;
            }
        }
        return max;
    }
public long max ( ) { Cell [ ] as = cells ; long max = base ; if ( as != null ) { int n = as . length ; long v ; for ( int i = 0 ; i < n ; ++ i ) { Cell a = as [ i ] ; if ( a != null && ( v = a . value ) > max ) max = v ; } } return max ; }
Returns the current maximum. The returned value is
<em>NOT</em> an atomic snapshot: Invocation in the absence of
concurrent updates returns an accurate result, but concurrent
updates that occur while the value is being calculated might
not be incorporated.

@return the maximum
Returns the current maximum . The returned value is <em > NOT< / em > an atomic snapshot : Invocation in the absence of concurrent updates returns an accurate result but concurrent updates that occur while the value is being calculated might not be incorporated .