Package com.carrotgarden.util.values.api

Examples of com.carrotgarden.util.values.api.PriceValue


  }

  public static final boolean isStrictMultiple(final PriceValue priceTest,
      final PriceValue priceStep) {
    final long count = priceTest.count(priceStep);
    final PriceValue priceBack = priceStep.mult(count);
    if (priceBack.equals(priceTest)) {
      return true;
    } else {
      return false;
    }
  }
View Full Code Here


  }

  public static final boolean isStrictMultiple(final PriceValue priceTest,
      final PriceValue priceStep) {
    final long count = priceTest.count(priceStep);
    final PriceValue priceBack = priceStep.mult(count);
    if (priceBack.equals(priceTest)) {
      return true;
    } else {
      return false;
    }
  }
View Full Code Here

  }

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

TOP

Related Classes of com.carrotgarden.util.values.api.PriceValue

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.