# com.beasys.commerce.axiom.units
Quantity Interface

public interface Quantity
extends `Belonging`

The quantity of something. It has a count and a unit of measure (e.g. 4 bags, 5 liters) Attribute: unit

- Containment: By Value
- Multiplicity: 1:1

Attribute: count The number of units.

- Containment: By Value
- Multiplicity: 1:1

Related Topics

``QuantityHome``
``QuantityImpl``

All Known Implementing Classes
  `QuantityImpl`

All Superinterfaces
  `Belonging`, `BusinessSmartComponent`, `Cloneable`, `Comparable`, `Serializable`

## Method Summary

`public double` | `getCount`() Get the value of count
`public `Unit`` | `getUnit`() Get the value of unit
`public void` | `setCount`(double count) Set the value of count
`public void` | `setUnit`(`Unit` unit) Set the value of unit

Methods from interface `com.beasys.commerce.foundation.`Belonging``
``clone`, `equals`, `interfaceName`, `setByValue`, `value``

Methods from interface `java.lang.`Comparable``
`compareTo`

## Method Detail

### getCount() Method

    public double getCount()

Get the value of count

#### Returns

count.

### getUnit() Method

    public Unit getUnit()

Get the value of unit

#### Returns

unit.

### setCount(double) Method

    public void setCount(double count)

Set the value of count

#### Parameters

count
  count to be added

### setUnit(Unit) Method

    public void setUnit(Unit unit)

Set the value of unit

#### Parameters

unit
  unit to be added