addFluid

open fun addFluid(amount: Double): Boolean(source)

Adds to the tank only if the new amount of fluid is greater than zero and fits in the tank.

Return

true only if the tank was added to successfully