Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
LinearIterator.java Written by Gil Tene of Azul Systems, and released to the public domain, as explained at http://creativecommons.org/publicdomain/zero/1.0/

Author(s):
Gil Tene
 
 
 package org.HdrHistogram;
Used for iterating through histogram values in linear steps. The iteration is performed in steps of valueUnitsPerBucket in size, terminating when all recorded histogram values are exhausted. Note that each iteration "bucket" includes values up to and including the next bucket boundary value.
    long valueUnitsPerBucket;
Reset iterator for re-use in a fresh iteration over the same histogram data set.

Parameters:
valueUnitsPerBucket The size (in value units) of each bucket iteration.
    public void reset(final int valueUnitsPerBucket) {
        reset(valueUnitsPerBucket);
    }
    private void reset(final AbstractHistogram histogramfinal long valueUnitsPerBucket) {
        super.resetIterator(histogram);
        this. = valueUnitsPerBucket;
        this. = valueUnitsPerBucket;
    }

    

Parameters:
histogram The histogram this iterator will operate on
valueUnitsPerBucket The size (in value units) of each bucket iteration.
    public LinearIterator(final AbstractHistogram histogramfinal int valueUnitsPerBucket) {
        reset(histogramvalueUnitsPerBucket);
    }
    @Override
    public boolean hasNext() {
        return (super.hasNext() || ( != 0));
    }
    @Override
    void incrementIterationLevel() {
    }
    @Override
    long getValueIteratedTo() {
        return ;
    }
    @Override
    boolean reachedIterationLevel() {
    }
New to GrepCode? Check out our FAQ X