content: //******************************************************************************
  // SCICHART® Copyright SciChart Ltd. 2011-2017. All rights reserved.
  //
  // Web: http://www.scichart.com
  // Support: support@scichart.com
  // Sales:   sales@scichart.com
  //
  // PriceBar.java is part of the SCICHART® Examples. Permission is hereby granted
  // to modify, create derivative works, distribute and publish any part of this source
  // code whether for commercial, private or personal use.
  //
  // The SCICHART® examples are distributed in the hope that they will be useful, but
  // without any warranty. It is provided "AS IS" without warranty of any kind, either
  // expressed or implied.
  //******************************************************************************
  
  package com.scichart.examples.data;
  
  import java.util.Date;
  
  public class PriceBar {
  
      private Date date = new Date();
      private final double open;
      private final double high;
      private final double low;
      private final double close;
      private final long volume;
  
      public PriceBar(double open, double high, double low, double close, long volume) {
          this.open = open;
          this.high = high;
          this.low = low;
          this.close = close;
          this.volume = volume;
      }
  
      public PriceBar(Date date, double open, double high, double low, double close, long volume) {
          this.date = date;
          this.open = open;
          this.high = high;
          this.low = low;
          this.close = close;
          this.volume = volume;
      }
  
      public Date getDate() {
          return date;
      }
  
      public double getOpen() {
          return open;
      }
  
      public double getHigh() {
          return high;
      }
  
      public double getLow() {
          return low;
      }
  
      public double getClose() {
          return close;
      }
  
      public long getVolume() {
          return volume;
      }
  }
  