Package com.barchart.feed.api.model.meta.instrument

Examples of com.barchart.feed.api.model.meta.instrument.Event.date()


    if (event == null || event.isNull()) {
      return null;
    }

    return event.date();

  }

  @Override
  public DateTime expiration() {
View Full Code Here


    if (event == null || event.isNull()) {
      return null;
    }

    return event.date();

  }

  /*
   * Object comparisons
View Full Code Here

      return TimeInterval.NULL;
    }

    return VALUES.newTimeInterval(
        start.isNull() ? 0 : start.date().getMillis(),
        end.isNull() ? 0 : end.date().getMillis());

  }

  @Override
  public Time contractExpire() {
View Full Code Here

    if (event.isNull()) {
      return Time.NULL;
    }

    return VALUES.newTime(event.date().getMillis());

  }

  @Override
  public Month contractDeliveryMonth() {
View Full Code Here

    if (event.isNull()) {
      return Month.NULL_MONTH;
    }

    switch (event.date().getMonthOfYear()) {

      case 1:
        return Month.JANUARY;
      case 2:
        return Month.FEBRUARY;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.