1 42 43 package org.jfree.data.xy; 44 45 import java.io.Serializable ; 46 47 57 public class YWithXInterval implements Serializable { 58 59 60 private double y; 61 62 63 private double xLow; 64 65 66 private double xHigh; 67 68 75 public YWithXInterval(double y, double xLow, double xHigh) { 76 this.y = y; 77 this.xLow = xLow; 78 this.xHigh = xHigh; 79 } 80 81 86 public double getY() { 87 return this.y; 88 } 89 90 95 public double getXLow() { 96 return this.xLow; 97 } 98 99 104 public double getXHigh() { 105 return this.xHigh; 106 } 107 108 115 public boolean equals(Object obj) { 116 if (obj == this) { 117 return true; 118 } 119 if (!(obj instanceof YWithXInterval)) { 120 return false; 121 } 122 YWithXInterval that = (YWithXInterval) obj; 123 if (this.y != that.y) { 124 return false; 125 } 126 if (this.xLow != that.xLow) { 127 return false; 128 } 129 if (this.xHigh != that.xHigh) { 130 return false; 131 } 132 return true; 133 } 134 135 } 136 | Popular Tags |