1 42 43 package org.jfree.data.xy; 44 45 import java.io.Serializable ; 46 47 53 public class YInterval implements Serializable { 54 55 56 private double y; 57 58 59 private double yLow; 60 61 62 private double yHigh; 63 64 71 public YInterval(double y, double yLow, double yHigh) { 72 this.y = y; 73 this.yLow = yLow; 74 this.yHigh = yHigh; 75 } 76 77 82 public double getY() { 83 return this.y; 84 } 85 86 91 public double getYLow() { 92 return this.yLow; 93 } 94 95 100 public double getYHigh() { 101 return this.yHigh; 102 } 103 104 111 public boolean equals(Object obj) { 112 if (obj == this) { 113 return true; 114 } 115 if (!(obj instanceof YInterval)) { 116 return false; 117 } 118 YInterval that = (YInterval) obj; 119 if (this.y != that.y) { 120 return false; 121 } 122 if (this.yLow != that.yLow) { 123 return false; 124 } 125 if (this.yHigh != that.yHigh) { 126 return false; 127 } 128 return true; 129 } 130 131 } 132 | Popular Tags |