Package com.teamten.typeset.element
Class TotalFlexibility
java.lang.Object
com.teamten.typeset.element.TotalFlexibility
Keeps track of a sum of flexibility, along with whether the infinite amount trumps the finite one.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Flexibility expandability) long
The expandability, where any finite amount trumps the finite one.boolean
Whether there was non-zero infinite expandability.The total expressed as an immutable Flexibility object.
-
Constructor Details
-
TotalFlexibility
public TotalFlexibility()
-
-
Method Details
-
add
-
isInfinite
public boolean isInfinite()Whether there was non-zero infinite expandability. -
getAmount
public long getAmount()The expandability, where any finite amount trumps the finite one. -
toFlexibility
The total expressed as an immutable Flexibility object.
-