本文整理汇总了Java中org.jfree.util.ObjectUtilities.equal方法的典型用法代码示例。如果您正苦于以下问题:Java ObjectUtilities.equal方法的具体用法?Java ObjectUtilities.equal怎么用?Java ObjectUtilities.equal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.util.ObjectUtilities
的用法示例。
在下文中一共展示了ObjectUtilities.equal方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests this time series collection for equality with another object.
*
* @param obj the other object.
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof TimeSeriesCollection)) {
return false;
}
TimeSeriesCollection that = (TimeSeriesCollection) obj;
if (this.xPosition != that.xPosition) {
return false;
}
if (this.domainIsPointsInTime != that.domainIsPointsInTime) {
return false;
}
if (!ObjectUtilities.equal(this.data, that.data)) {
return false;
}
return true;
}
示例2: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests this instance for equality against an arbitrary object.
*
* @param obj the object (<code>null</code> permitted).
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof PlotRenderingInfo)) {
return false;
}
PlotRenderingInfo that = (PlotRenderingInfo) obj;
if (!ObjectUtilities.equal(this.dataArea, that.dataArea)) {
return false;
}
if (!ObjectUtilities.equal(this.plotArea, that.plotArea)) {
return false;
}
if (!ObjectUtilities.equal(this.subplotInfo, that.subplotInfo)) {
return false;
}
return true;
}
示例3: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests the generator for equality with an arbitrary object.
*
* @param obj the object (<code>null</code> permitted).
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof StandardCategoryURLGenerator)) {
return false;
}
StandardCategoryURLGenerator that = (StandardCategoryURLGenerator) obj;
if (!ObjectUtilities.equal(this.prefix, that.prefix)) {
return false;
}
if (!ObjectUtilities.equal(this.seriesParameterName,
that.seriesParameterName)) {
return false;
}
if (!ObjectUtilities.equal(this.categoryParameterName,
that.categoryParameterName)) {
return false;
}
return true;
}
示例4: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests if this object is equal to another.
*
* @param obj the object to test against for equality (<code>null</code>
* permitted).
*
* @return A boolean.
*/
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;
}
示例5: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests the entity for equality with an arbitrary object.
*
* @param obj the object to test against (<code>null</code> permitted).
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj instanceof ChartEntity) {
ChartEntity that = (ChartEntity) obj;
if (!this.area.equals(that.area)) {
return false;
}
if (!ObjectUtilities.equal(this.toolTipText, that.toolTipText)) {
return false;
}
if (!ObjectUtilities.equal(this.urlText, that.urlText)) {
return false;
}
return true;
}
return false;
}
示例6: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests this object for equality with an arbitrary object.
*
* @param obj the other object (<code>null</code> permitted).
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof AbstractCategoryItemLabelGenerator)) {
return false;
}
AbstractCategoryItemLabelGenerator that
= (AbstractCategoryItemLabelGenerator) obj;
if (!this.labelFormat.equals(that.labelFormat)) {
return false;
}
if (!ObjectUtilities.equal(this.dateFormat, that.dateFormat)) {
return false;
}
if (!ObjectUtilities.equal(this.numberFormat, that.numberFormat)) {
return false;
}
return true;
}
示例7: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests this series for equality with an arbitrary object.
*
* @param obj the object to test against for equality
* (<code>null</code> permitted).
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ComparableObjectSeries)) {
return false;
}
if (!super.equals(obj)) {
return false;
}
ComparableObjectSeries that = (ComparableObjectSeries) obj;
if (this.maximumItemCount != that.maximumItemCount) {
return false;
}
if (this.autoSort != that.autoSort) {
return false;
}
if (this.allowDuplicateXValues != that.allowDuplicateXValues) {
return false;
}
if (!ObjectUtilities.equal(this.data, that.data)) {
return false;
}
return true;
}
示例8: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests this object for equality with an arbitrary object.
*
* @param obj the other object (<code>null</code> permitted).
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof BubbleXYItemLabelGenerator)) {
return false;
}
if (!super.equals(obj)) {
return false;
}
BubbleXYItemLabelGenerator that = (BubbleXYItemLabelGenerator) obj;
if (!ObjectUtilities.equal(this.zFormat, that.zFormat)) {
return false;
}
if (!ObjectUtilities.equal(this.zDateFormat, that.zDateFormat)) {
return false;
}
return true;
}
示例9: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests this map for equality with an arbitrary object.
*
* @param obj the object (<code>null</code> permitted).
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof StrokeMap)) {
return false;
}
StrokeMap that = (StrokeMap) obj;
if (this.store.size() != that.store.size()) {
return false;
}
Set keys = this.store.keySet();
Iterator iterator = keys.iterator();
while (iterator.hasNext()) {
Comparable key = (Comparable) iterator.next();
Stroke s1 = getStroke(key);
Stroke s2 = that.getStroke(key);
if (!ObjectUtilities.equal(s1, s2)) {
return false;
}
}
return true;
}
示例10: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests this collection for equality with an arbitrary object.
*
* @param obj the object (<code>null</code> permitted).
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof DefaultTableXYDataset)) {
return false;
}
DefaultTableXYDataset that = (DefaultTableXYDataset) obj;
if (this.autoPrune != that.autoPrune) {
return false;
}
if (this.propagateEvents != that.propagateEvents) {
return false;
}
if (!this.intervalDelegate.equals(that.intervalDelegate)) {
return false;
}
if (!ObjectUtilities.equal(this.data, that.data)) {
return false;
}
return true;
}
示例11: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests this series for equality with an arbitrary object.
*
* @param obj the object to test against for equality
* (<code>null</code> permitted).
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof XYSeries)) {
return false;
}
if (!super.equals(obj)) {
return false;
}
XYSeries that = (XYSeries) obj;
if (this.maximumItemCount != that.maximumItemCount) {
return false;
}
if (this.autoSort != that.autoSort) {
return false;
}
if (this.allowDuplicateXValues != that.allowDuplicateXValues) {
return false;
}
if (!ObjectUtilities.equal(this.data, that.data)) {
return false;
}
return true;
}
示例12: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests this annotation for equality with an arbitrary object.
*
* @param obj the object (<code>null</code> permitted).
*
* @return <code>true</code> or <code>false</code>.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof XYPointerAnnotation)) {
return false;
}
if (!super.equals(obj)) {
return false;
}
XYPointerAnnotation that = (XYPointerAnnotation) obj;
if (this.angle != that.angle) {
return false;
}
if (this.tipRadius != that.tipRadius) {
return false;
}
if (this.baseRadius != that.baseRadius) {
return false;
}
if (this.arrowLength != that.arrowLength) {
return false;
}
if (this.arrowWidth != that.arrowWidth) {
return false;
}
if (!this.arrowPaint.equals(that.arrowPaint)) {
return false;
}
if (!ObjectUtilities.equal(this.arrowStroke, that.arrowStroke)) {
return false;
}
if (this.labelOffset != that.labelOffset) {
return false;
}
return true;
}
示例13: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests this object for equality with another.
*
* @param obj the object (<code>null</code> permitted).
*
* @return <code>true</code> or <code>false</code>.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof CategoryLineAnnotation)) {
return false;
}
CategoryLineAnnotation that = (CategoryLineAnnotation) obj;
if (!this.category1.equals(that.getCategory1())) {
return false;
}
if (this.value1 != that.getValue1()) {
return false;
}
if (!this.category2.equals(that.getCategory2())) {
return false;
}
if (this.value2 != that.getValue2()) {
return false;
}
if (!PaintUtilities.equal(this.paint, that.paint)) {
return false;
}
if (!ObjectUtilities.equal(this.stroke, that.stroke)) {
return false;
}
return true;
}
示例14: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests this instance for equality with an arbitrary object.
*
* @param obj the object (<code>null</code> permitted).
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof TaskSeriesCollection)) {
return false;
}
TaskSeriesCollection that = (TaskSeriesCollection) obj;
if (!ObjectUtilities.equal(this.data, that.data)) {
return false;
}
return true;
}
示例15: equals
import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
* Tests this axis for equality with an arbitrary object.
*
* @param obj the object (<code>null</code> permitted).
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof DateAxis)) {
return false;
}
DateAxis that = (DateAxis) obj;
if (!ObjectUtilities.equal(this.tickUnit, that.tickUnit)) {
return false;
}
if (!ObjectUtilities.equal(this.dateFormatOverride,
that.dateFormatOverride)) {
return false;
}
if (!ObjectUtilities.equal(this.tickMarkPosition,
that.tickMarkPosition)) {
return false;
}
if (!ObjectUtilities.equal(this.timeline, that.timeline)) {
return false;
}
if (!super.equals(obj)) {
return false;
}
return true;
}