content: /*
   * To change this license header, choose License Headers in Project Properties.
   * To change this template file, choose Tools | Templates
   * and open the template in the editor.
   */
  package com.github.misterchangray.libs.bitmex.entity;
  
  import java.util.Objects;
  
  /**
   *
   * @author RobTerpilowski
   */
  public class BitmexTrade {
      
      protected String symbol;
      protected String side;
      protected double price;
      protected double size;
      protected String timestamp;
  
      public String getSymbol() {
          return symbol;
      }
  
      public void setSymbol(String symbol) {
          this.symbol = symbol;
      }
  
      public String getSide() {
          return side;
      }
  
      public void setSide(String side) {
          this.side = side;
      }
  
      public double getPrice() {
          return price;
      }
  
      public void setPrice(double price) {
          this.price = price;
      }
  
      public double getSize() {
          return size;
      }
  
      public void setSize(double size) {
          this.size = size;
      }
  
      public String getTimestamp() {
          return timestamp;
      }
  
      public void setTimestamp(String timestamp) {
          this.timestamp = timestamp;
      }
  
      @Override
      public int hashCode() {
          int hash = 5;
          hash = 97 * hash + Objects.hashCode(this.symbol);
          hash = 97 * hash + Objects.hashCode(this.side);
          hash = 97 * hash + (int) (Double.doubleToLongBits(this.price) ^ (Double.doubleToLongBits(this.price) >>> 32));
          hash = 97 * hash + (int) (Double.doubleToLongBits(this.size) ^ (Double.doubleToLongBits(this.size) >>> 32));
          hash = 97 * hash + Objects.hashCode(this.timestamp);
          return hash;
      }
  
      @Override
      public boolean equals(Object obj) {
          if (this == obj) {
              return true;
          }
          if (obj == null) {
              return false;
          }
          if (getClass() != obj.getClass()) {
              return false;
          }
          final BitmexTrade other = (BitmexTrade) obj;
          if (Double.doubleToLongBits(this.price) != Double.doubleToLongBits(other.price)) {
              return false;
          }
          if (Double.doubleToLongBits(this.size) != Double.doubleToLongBits(other.size)) {
              return false;
          }
          if (!Objects.equals(this.symbol, other.symbol)) {
              return false;
          }
          if (!Objects.equals(this.side, other.side)) {
              return false;
          }
          if (!Objects.equals(this.timestamp, other.timestamp)) {
              return false;
          }
          return true;
      }
  
      @Override
      public String toString() {
          return "BitmexTrade{" + "symbol=" + symbol + ", side=" + side + ", price=" + price + ", size=" + size + ", timestamp=" + timestamp + '}';
      }
      
      
      
  }
  