## Uses of Class
org.gitana.platform.services.plan.DataUnit

Packages that use DataUnit
org.gitana.platform.services.billing
org.gitana.platform.services.plan

### Uses of DataUnit in org.gitana.platform.services.billing

Methods in org.gitana.platform.services.billing with parameters of type DataUnit
`static BigDecimal` BillingCalculator.`calculateOverageCost(long allowance, DataUnit unit, long byteCount, BigDecimal pricePerUnit)` Computes the overage cost given an allowance specified in units (i.e.
`static long` BillingCalculator.`toByteCount(BigDecimal unitCount, DataUnit unit)` Converts a unit count (length in MB, GB, etc) to a byte count.
`static long` BillingCalculator.`toByteCount(long unitCount, DataUnit unit)` Converts a unit count (length in MB, GB, etc) to a byte count.
`static BigDecimal` BillingCalculator.`toUnitCount(long byteCount, DataUnit unit, int scale)` Converts an byte count (length in bytes) to a unit count (length in MB, GB, etc).

### Uses of DataUnit in org.gitana.platform.services.plan

Methods in org.gitana.platform.services.plan that return DataUnit
`static DataUnit` DataUnit.`valueOf(String name)` Returns the enum constant of this type with the specified name.
`static DataUnit[]` DataUnit.`values()` Returns an array containing the constants of this enum type, in the order they are declared.