Quantity Constructor

Constructor in Quantity<T>

Declaration

public Quantity(T entity, int amount)

Description

Creates a new quantity with the specified amount of a given entity.

Parameters

entityThe entity being counted.
amountThe amount of entities.