package com.xeiam.xchange.atlasats.dtos;

import java.io.Serializable;

public class AtlasCurrencyPair implements Serializable {

  /**
	 * 
	 */
  private static final long serialVersionUID = 1L;

  private String baseSymbol;
  private String counterSymbol;

  public AtlasCurrencyPair(String baseSymbol, String counterSymbol) {

    this.baseSymbol = baseSymbol;
    this.counterSymbol = counterSymbol;
  }

  public String getBaseSymbol() {

    return baseSymbol;
  }

  public String getCounterSymbol() {

    return counterSymbol;
  }

  @Override
  public int hashCode() {

    final int prime = 31;
    int result = 1;
    result = prime * result + ((baseSymbol == null) ? 0 : baseSymbol.hashCode());
    result = prime * result + ((counterSymbol == null) ? 0 : counterSymbol.hashCode());
    return result;
  }

  @Override
  public boolean equals(Object obj) {

    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (!(obj instanceof AtlasCurrencyPair)) {
      return false;
    }
    AtlasCurrencyPair other = (AtlasCurrencyPair) obj;
    if (baseSymbol == null) {
      if (other.base.getCurrencyCode() != null) {
        return false;
      }
    }
    else if (!baseSymbol.equals(other.base.getCurrencyCode())) {
      return false;
    }
    if (counterSymbol == null) {
      if (other.counter.getCurrencyCode() != null) {
        return false;
      }
    }
    else if (!counterSymbol.equals(other.counter.getCurrencyCode())) {
      return false;
    }
    return true;
  }

  @Override
  public String toString() {

    StringBuilder builder = new StringBuilder();
    builder.append("AtlasCurrencyPair [baseSymbol=");
    builder.append(baseSymbol);
    builder.append(", counterSymbol=");
    builder.append(counterSymbol);
    builder.append("]");
    return builder.toString();
  }

}

@@ -1140,34 +1140,22 @@
 her.base
-.getCurrencyCode()
+Symbol
  != null
@@ -1236,34 +1236,22 @@
 her.base
-.getCurrencyCode()
+Symbol
 )) %7B%0A   
@@ -1329,34 +1329,22 @@
 .counter
-.getCurrencyCode()
+Symbol
  != null
@@ -1435,26 +1435,14 @@
 nter
-.getCurrencyCode()
+Symbol
 )) %7B

Revert small incorrect change