Package com.barchart.util.values.api

Examples of com.barchart.util.values.api.DecimalValue


  }

  @Override
  public final boolean equals(final Object thatValue) {
    if (thatValue instanceof DecimalValue) {
      DecimalValue that = (DecimalValue) thatValue;
      return this.compareTo(that) == 0;
    }
    return false;
  }
View Full Code Here


   
  }
 
  public static void main(final String[] args) {
   
    DecimalValue priceStep = ValueBuilder.newDecimal(25, -2);
   
    PriceValue test1 = ValueBuilder.newPrice(1000);
    PriceValue test2 = ValueBuilder.newPrice(100);
    PriceValue test3 = ValueBuilder.newPrice(10);
    PriceValue test4 = ValueBuilder.newPrice(1);
View Full Code Here

  }

  @Override
  public final boolean equals(final Object thatValue) {
    if (thatValue instanceof DecimalValue) {
      DecimalValue that = (DecimalValue) thatValue;
      return this.compareTo(that) == 0;
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of com.barchart.util.values.api.DecimalValue

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.