Package io.keikai.axyra.sheets.io
Enum Class FormulaPolicy
- All Implemented Interfaces:
Serializable,Comparable<FormulaPolicy>,Constable
How formula cells are written by
Workbook.save(path, SaveOptions).
Only XLSX output applies it; see SaveOptions. The workbook in memory
keeps its formulas whatever the policy.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWrites the cell blank: the formula and its value are both left out.Writes the formula and its cached value; the default.Writes the cached value only and leaves out the formula, like Excel's Paste Special > Values. -
Method Summary
Modifier and TypeMethodDescriptionintcode()The engine code: 0 keep, 1 blank, 2 values only.static FormulaPolicyReturns the enum constant of this class with the specified name.static FormulaPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
KEEP
Writes the formula and its cached value; the default. -
BLANK
Writes the cell blank: the formula and its value are both left out. -
VALUES_ONLY
Writes the cached value only and leaves out the formula, like Excel's Paste Special > Values.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
code
public int code()The engine code: 0 keep, 1 blank, 2 values only.
-