Exemplo n.º 1
0
  /**
   * Indicates if this instance is identical to another object.
   *
   * @param obj The other object.
   * @return <code>true</code> if and only if this instance is identical to the other object.
   */
  public boolean equals(Object obj) {

    boolean equals;

    if (!(obj instanceof DisplayableMeanWind)) {
      equals = false;
    } else {
      DisplayableMeanWind that = (DisplayableMeanWind) obj;

      equals =
          (this == that)
              || ((dataRenderer == null)
                      ? that.dataRenderer == null
                      : dataRenderer.equals(that.dataRenderer))
                  && super.equals(that);
    }

    return equals;
  }