Example usage for org.jfree.util ObjectUtilities equal

List of usage examples for org.jfree.util ObjectUtilities equal

Introduction

In this page you can find the example usage for org.jfree.util ObjectUtilities equal.

Prototype

public static boolean equal(final Object o1, final Object o2) 

Source Link

Document

Returns true if the two objects are equal OR both null.

Usage

From source file:org.trade.strategy.data.VostroDataset.java

/**
 * Tests this instance for equality with an arbitrary object.
 * /*from   ww  w. j av a2  s. 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 VostroDataset)) {
        return false;
    }
    VostroDataset that = (VostroDataset) obj;
    if (!this.xPosition.equals(that.xPosition)) {
        return false;
    }
    return ObjectUtilities.equal(this.data, that.data);
}

From source file:org.trade.strategy.data.MACDDataset.java

/**
 * Tests this instance for equality with an arbitrary object.
 * //ww w .j a va  2  s  .co  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 MACDDataset)) {
        return false;
    }
    MACDDataset that = (MACDDataset) obj;
    if (!this.xPosition.equals(that.xPosition)) {
        return false;
    }
    return ObjectUtilities.equal(this.data, that.data);
}

From source file:org.trade.strategy.data.VwapDataset.java

/**
 * Tests this instance for equality with an arbitrary object.
 * //  w ww  . j a va2  s.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 VwapDataset)) {
        return false;
    }
    VwapDataset that = (VwapDataset) obj;
    if (!this.xPosition.equals(that.xPosition)) {
        return false;
    }
    return ObjectUtilities.equal(this.data, that.data);
}

From source file:org.trade.strategy.data.MovingAverageDataset.java

/**
 * Tests this instance for equality with an arbitrary object.
 * /*from   w ww  .ja  v  a  2  s .  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 MovingAverageDataset)) {
        return false;
    }
    MovingAverageDataset that = (MovingAverageDataset) obj;
    if (!this.xPosition.equals(that.xPosition)) {
        return false;
    }
    return ObjectUtilities.equal(this.data, that.data);
}

From source file:org.trade.strategy.data.MoneyFlowIndexDataset.java

/**
 * Tests this instance for equality with an arbitrary object.
 * //from ww w  .  j ava  2 s  .  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 MoneyFlowIndexDataset)) {
        return false;
    }
    MoneyFlowIndexDataset that = (MoneyFlowIndexDataset) obj;
    if (!this.xPosition.equals(that.xPosition)) {
        return false;
    }
    return ObjectUtilities.equal(this.data, that.data);
}

From source file:org.trade.strategy.data.AverageTrueRangeDataset.java

/**
 * Tests this instance for equality with an arbitrary object.
 * //from   www.ja  va  2  s .  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 AverageTrueRangeDataset)) {
        return false;
    }
    AverageTrueRangeDataset that = (AverageTrueRangeDataset) obj;
    if (!this.xPosition.equals(that.xPosition)) {
        return false;
    }
    return ObjectUtilities.equal(this.data, that.data);
}

From source file:org.trade.strategy.data.StochasticOscillatorDataset.java

/**
 * Tests this instance for equality with an arbitrary object.
 * //  ww w.  j a v a  2 s .co 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 StochasticOscillatorDataset)) {
        return false;
    }
    StochasticOscillatorDataset that = (StochasticOscillatorDataset) obj;
    if (!this.xPosition.equals(that.xPosition)) {
        return false;
    }
    return ObjectUtilities.equal(this.data, that.data);
}

From source file:org.trade.strategy.data.RelativeStrengthIndexDataset.java

/**
 * Tests this instance for equality with an arbitrary object.
 * //  ww w.j  a v a2  s.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 RelativeStrengthIndexDataset)) {
        return false;
    }
    RelativeStrengthIndexDataset that = (RelativeStrengthIndexDataset) obj;
    if (!this.xPosition.equals(that.xPosition)) {
        return false;
    }
    return ObjectUtilities.equal(this.data, that.data);
}

From source file:org.trade.strategy.data.CommodityChannelIndexDataset.java

/**
 * Tests this instance for equality with an arbitrary object.
 * //from   w  w w . j a  v  a 2  s  .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 CommodityChannelIndexDataset)) {
        return false;
    }
    CommodityChannelIndexDataset that = (CommodityChannelIndexDataset) obj;
    if (!this.xPosition.equals(that.xPosition)) {
        return false;
    }
    return ObjectUtilities.equal(this.data, that.data);
}

From source file:org.trade.strategy.data.PivotDataset.java

/**
 * Tests this instance for equality with an arbitrary object.
 * /*from www.j  av  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 PivotDataset)) {
        return false;
    }
    PivotDataset that = (PivotDataset) obj;
    if (!this.xPosition.equals(that.xPosition)) {
        return false;
    }
    return ObjectUtilities.equal(this.data, that.data);
}