All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fillumina.performance.util.interval.LongInterval Maven / Gradle / Ivy

Go to download

Configurable tool to easily compare performances of different code snippets and to take performance telemetry of a running application.

The newest version!
package com.fillumina.performance.util.interval;

import java.io.Serializable;

/**
 *
 * @author Francesco Illuminati
 */
public class LongInterval
        extends AbstractBuildableInterval
        implements BuildableInterval, Serializable {
    private static final long serialVersionUID = 1L;

    public static IntervalBuilder cycle() {
        return new IntervalBuilder<>(
                new LongInterval());
    }

    private LongInterval() {}

    @Override
    protected boolean isLessThan(final Long smaller, final Long bigger) {
        return smaller < bigger;
    }

    @Override
    protected Long calculateCurrent(final Long first,
            final Long step, final int index) {
        return first + index * step;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy