package com.se.nsl.domain.dto; @SuppressWarnings("ALL") public class PointDto implements Comparable { private double x; private double y; private double val; PointDto() { } public PointDto(double x, double y, double val) { this.x = x; this.y = y; this.val = val; } public double getX() { return x; } public void setX(double x) { this.x = x; } public double getY() { return y; } public void setY(double y) { this.y = y; } public double getVal() { return val; } public void setVal(double val) { this.val = val; } @Override public int compareTo(PointDto other) { return Double.compare(this.getVal(), other.getVal()); } }