Package com.barchart.util.value.api

Examples of com.barchart.util.value.api.TimeInterval


    if (!(o instanceof TimeInterval)) {
      return false;
    }

    final TimeInterval tI = (TimeInterval) o;
   
    if(tI.isNull() && !this.isNull()) {
      return false;
    } else if(this.isNull() && !tI.isNull()) {
      return false;
    } else if(this.isNull() && tI.isNull()) {
      return true;
    }

    return (start().equals(tI.start())) && (stop().equals(tI.stop()));

  }
View Full Code Here


    final PriceValue priceStep = newPrice(priceStepMantissa,
        frac.decimalExponent);
   
    /* Build Lifetime, currently only have last month/year of instrument from ddf.extras */
    TimeInterval lifetime;
    if(expire == null || expire == Time.NULL) { // Was isNull()
      lifetime = TimeInterval.NULL;
    } else {
      lifetime = factory.newTimeInterval(0, expire.millisecond());
    }
View Full Code Here

    final PriceValue priceStep = newPrice(priceStepMantissa,
        frac.decimalExponent);
   
    /* Build Lifetime, currently only have last month/year of instrument from ddf.extras */
    TimeInterval lifetime;
    if(expire == null || expire == com.barchart.util.value.impl.ValueConst.NULL_TIME) { // Was isNull()
      lifetime = com.barchart.util.value.impl.ValueConst.NULL_TIME_INTERVAL;
    } else {
      lifetime = factory.newTimeInterval(0, expire.millisecond());
    }
View Full Code Here

    if (!(o instanceof TimeInterval)) {
      return false;
    }

    final TimeInterval tI = (TimeInterval) o;

    return (start().equals(tI.start())) && (stop().equals(tI.stop()));

  }
View Full Code Here

    final PriceValue priceStep = newPrice(priceStepMantissa,
        frac.decimalExponent);
   
    /* Build Lifetime, currently only have last month/year of instrument from ddf.extras */
    TimeInterval lifetime;
    if(expire == null || expire == Time.NULL) { // Was isNull()
      lifetime = TimeInterval.NULL;
    } else {
      lifetime = factory.newTimeInterval(0, expire.millisecond());
    }
View Full Code Here

    final PriceValue priceStep = newPrice(priceStepMantissa,
        frac.decimalExponent);
   
    /* Build Lifetime, currently only have last month/year of instrument from ddf.extras */
    TimeInterval lifetime;
    if(expire == null || expire == com.barchart.util.value.impl.ValueConst.NULL_TIME) { // Was isNull()
      lifetime = com.barchart.util.value.impl.ValueConst.NULL_TIME_INTERVAL;
    } else {
      lifetime = factory.newTimeInterval(0, expire.millisecond());
    }
View Full Code Here

    if (!(o instanceof TimeInterval)) {
      return false;
    }

    final TimeInterval tI = (TimeInterval) o;

    return (start().equals(tI.start())) && (stop().equals(tI.stop()));

  }
View Full Code Here

TOP

Related Classes of com.barchart.util.value.api.TimeInterval

Copyright © 2018 www.massapicom. 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.