Package com.github.miachm.sods
Class OfficePercentage
java.lang.Object
com.github.miachm.sods.OfficePercentage
This class defines a percentage in a Spreadsheet
-
Constructor Summary
ConstructorsConstructorDescriptionOfficePercentage(Double value) Build a default object with a valueOfficePercentage(String value) Build a default object using the string representation of percentage -
Method Summary
-
Constructor Details
-
OfficePercentage
Build a default object with a value- Parameters:
value- The percentage in a normalized value (1.0 is a 100%). It can be null
-
OfficePercentage
Build a default object using the string representation of percentage- Parameters:
value- The percentage in a string representation (ex: "40%")- Throws:
IllegalArgumentException- If the string does not represent a valid percentage representation.
-
-
Method Details