org.broadleafcommerce.profile.util
Class UnitOfMeasureUtil

java.lang.Object
  extended by org.broadleafcommerce.profile.util.UnitOfMeasureUtil

public class UnitOfMeasureUtil
extends java.lang.Object


Constructor Summary
UnitOfMeasureUtil()
           
 
Method Summary
static java.math.BigDecimal convertFeetToInches(java.math.BigDecimal feet)
           
static java.math.BigDecimal convertFeetToMeters(java.math.BigDecimal feet)
           
static java.math.BigDecimal convertInchesToFeet(java.math.BigDecimal inches)
           
static java.math.BigDecimal convertKilogramsToPounds(java.math.BigDecimal kilograms)
           
static java.math.BigDecimal convertMetersToFeet(java.math.BigDecimal meters)
           
static java.math.BigDecimal convertOuncesToPounds(java.math.BigDecimal ounces)
           
static java.math.BigDecimal convertPoundsToKilograms(java.math.BigDecimal pounds)
           
static java.math.BigDecimal convertPoundsToOunces(java.math.BigDecimal pounds)
           
static java.math.BigDecimal findInches(java.math.BigDecimal dimension, DimensionUnitOfMeasureType type)
           
static java.math.BigDecimal findOunces(java.math.BigDecimal weight, WeightUnitOfMeasureType type)
           
static java.math.BigDecimal findPounds(java.math.BigDecimal weight, WeightUnitOfMeasureType type)
           
static java.math.BigDecimal findRemainingOunces(java.math.BigDecimal weight, WeightUnitOfMeasureType type)
           
static int findWholePounds(java.math.BigDecimal weight, WeightUnitOfMeasureType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitOfMeasureUtil

public UnitOfMeasureUtil()
Method Detail

convertKilogramsToPounds

public static java.math.BigDecimal convertKilogramsToPounds(java.math.BigDecimal kilograms)

convertPoundsToKilograms

public static java.math.BigDecimal convertPoundsToKilograms(java.math.BigDecimal pounds)

convertPoundsToOunces

public static java.math.BigDecimal convertPoundsToOunces(java.math.BigDecimal pounds)

convertOuncesToPounds

public static java.math.BigDecimal convertOuncesToPounds(java.math.BigDecimal ounces)

convertFeetToMeters

public static java.math.BigDecimal convertFeetToMeters(java.math.BigDecimal feet)

convertMetersToFeet

public static java.math.BigDecimal convertMetersToFeet(java.math.BigDecimal meters)

convertInchesToFeet

public static java.math.BigDecimal convertInchesToFeet(java.math.BigDecimal inches)

convertFeetToInches

public static java.math.BigDecimal convertFeetToInches(java.math.BigDecimal feet)

findWholePounds

public static int findWholePounds(java.math.BigDecimal weight,
                                  WeightUnitOfMeasureType type)

findPounds

public static java.math.BigDecimal findPounds(java.math.BigDecimal weight,
                                              WeightUnitOfMeasureType type)

findRemainingOunces

public static java.math.BigDecimal findRemainingOunces(java.math.BigDecimal weight,
                                                       WeightUnitOfMeasureType type)

findOunces

public static java.math.BigDecimal findOunces(java.math.BigDecimal weight,
                                              WeightUnitOfMeasureType type)

findInches

public static java.math.BigDecimal findInches(java.math.BigDecimal dimension,
                                              DimensionUnitOfMeasureType type)


Copyright © 2011. All Rights Reserved.