List of usage examples for org.jfree.util ObjectUtilities equal
public static boolean equal(final Object o1, final Object o2)
true
if the two objects are equal OR both null
. From source file:org.schreibubi.JCombinations.jfreechart.ArbitraryMarker.java
/** * Tests the marker for equality with an arbitrary object. * /*from ww w. j a va 2s .co m*/ * @param obj * the object (<code>null</code> permitted). * * @return A boolean. */ @Override public boolean equals(Object obj) { if (obj == this) return true; if (!(obj instanceof ArbitraryMarker)) return false; if (!super.equals(obj)) return false; ArbitraryMarker that = (ArbitraryMarker) obj; if (!this.rangeLow.equals(that.rangeLow)) return false; if (!this.rangeHigh.equals(that.rangeHigh)) return false; if (!ObjectUtilities.equal(this.gradientPaintTransformer, that.gradientPaintTransformer)) return false; return true; }
From source file:org.jfree.data.ComparableObjectItem.java
/** * Tests if this object is equal to another. * * @param obj the object to test against for equality (<code>null</code> * permitted).//w ww. j a v a 2s .co m * * @return A boolean. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof ComparableObjectItem)) { return false; } ComparableObjectItem that = (ComparableObjectItem) obj; if (!this.x.equals(that.x)) { return false; } if (!ObjectUtilities.equal(this.obj, that.obj)) { return false; } return true; }
From source file:org.jfree.data.time.TimeSeriesDataItem.java
/** * Tests this object for equality with an arbitrary object. * * @param obj the other object (<code>null</code> permitted). * * @return A boolean.//from www. ja v a2 s. co m */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof TimeSeriesDataItem)) { return false; } TimeSeriesDataItem that = (TimeSeriesDataItem) obj; if (!ObjectUtilities.equal(this.period, that.period)) { return false; } if (!ObjectUtilities.equal(this.value, that.value)) { return false; } return true; }
From source file:com.newatlanta.bluedragon.XYURLGenerator.java
/** * Tests the generator for equality with an arbitrary object. * //from w w w. jav a 2s. c o m * @param obj * the object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof XYURLGenerator)) { return false; } XYURLGenerator that = (XYURLGenerator) obj; if (!ObjectUtilities.equal(this.url, that.url)) { return false; } return true; }
From source file:com.newatlanta.bluedragon.CategoryURLGenerator.java
/** * Tests the generator for equality with an arbitrary object. * /*from w w w . j a va 2s. c o m*/ * @param obj * the object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof CategoryURLGenerator)) { return false; } CategoryURLGenerator that = (CategoryURLGenerator) obj; if (!ObjectUtilities.equal(this.url, that.url)) { return false; } return true; }
From source file:org.jfree.data.gantt.Task.java
/** * Tests this object for equality with an arbitrary object. * * @param object the other object (<code>null</code> permitted). * * @return A boolean./* w w w . ja v a2s . c o m*/ */ @Override public boolean equals(Object object) { if (object == this) { return true; } if (!(object instanceof Task)) { return false; } Task that = (Task) object; if (!ObjectUtilities.equal(this.description, that.description)) { return false; } if (!ObjectUtilities.equal(this.duration, that.duration)) { return false; } if (!ObjectUtilities.equal(this.percentComplete, that.percentComplete)) { return false; } if (!ObjectUtilities.equal(this.subtasks, that.subtasks)) { return false; } return true; }
From source file:edu.cuny.jfree.chart.annotations.CategoryIntervalAnnotation.java
@Override public boolean equals(final Object obj) { if (obj == this) { return true; }/*from w w w.ja v a 2s . c o m*/ if (!(obj instanceof CategoryIntervalAnnotation)) { return false; } final CategoryIntervalAnnotation that = (CategoryIntervalAnnotation) obj; if (!category.equals(that.getCategory())) { return false; } if (value1 != that.getValue1()) { return false; } if (value2 != that.getValue2()) { return false; } if (!PaintUtilities.equal(paint, that.paint)) { return false; } return ObjectUtilities.equal(stroke, that.stroke); }
From source file:org.jfree.data.xy.XYDataItem.java
/** * Tests if this object is equal to another. * * @param obj the object to test against for equality (<code>null</code> * permitted).//from w ww . j a v a 2 s. com * * @return A boolean. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof XYDataItem)) { return false; } XYDataItem that = (XYDataItem) obj; if (!this.x.equals(that.x)) { return false; } if (!ObjectUtilities.equal(this.y, that.y)) { return false; } return true; }
From source file:org.jfree.data.xy.MatrixSeriesCollection.java
/** * Tests this collection for equality with an arbitrary object. * * @param obj the object./*from w ww . j ava2 s . c om*/ * * @return A boolean. */ @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (obj instanceof MatrixSeriesCollection) { MatrixSeriesCollection c = (MatrixSeriesCollection) obj; return ObjectUtilities.equal(this.seriesList, c.seriesList); } return false; }
From source file:org.jfree.data.KeyToGroupMap.java
/** * Tests the map for equality against an arbitrary object. * * @param obj the object to test against (<code>null</code> permitted). * * @return A boolean.// w w w. j a va2s . c o m */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof KeyToGroupMap)) { return false; } KeyToGroupMap that = (KeyToGroupMap) obj; if (!ObjectUtilities.equal(this.defaultGroup, that.defaultGroup)) { return false; } if (!this.keyToGroupMap.equals(that.keyToGroupMap)) { return false; } return true; }