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

org.nd4j.linalg.profiler.data.primitives.ComparableAtomicLong Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
package org.nd4j.linalg.profiler.data.primitives;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @author [email protected]
 */
public class ComparableAtomicLong extends AtomicLong implements Comparable {

    public ComparableAtomicLong() {
        super();
    }

    public ComparableAtomicLong(long startingValue) {
        super(startingValue);
    }

    @Override
    public int compareTo(ComparableAtomicLong o) {
        return Long.compare(o.get(), this.get());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy