org.nd4j.linalg.profiler.data.primitives.ComparableAtomicLong Maven / Gradle / Ivy
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());
}
}