Package org.apache.poi.hssf.record
Class FormulaSpecialCachedValue
java.lang.Object
org.apache.poi.hssf.record.FormulaSpecialCachedValue
- All Implemented Interfaces:
GenericRecord
Manages the cached formula result values of other types besides numeric.
Excel encodes the same 8 bytes that would be field_4_value with various NaN
values that are decoded/encoded by this class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic FormulaSpecialCachedValuecreate(long valueLongBits) static FormulaSpecialCachedValuecreateCachedBoolean(boolean b) static FormulaSpecialCachedValuestatic FormulaSpecialCachedValuecreateCachedErrorCode(int errorCode) static FormulaSpecialCachedValuebooleanintintintDeprecated.POI 5.0.0, will be removed in 5.0, use getValueTypeEnum until switch to enum is fully doneReturns the type of the cached valuevoidtoString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
Field Details
-
STRING
public static final int STRING- See Also:
-
BOOLEAN
public static final int BOOLEAN- See Also:
-
ERROR_CODE
public static final int ERROR_CODE- See Also:
-
EMPTY
public static final int EMPTY- See Also:
-
-
Method Details
-
getTypeCode
public int getTypeCode() -
create
- Returns:
nullif the double value encoded byvalueLongBitsis a normal (non NaN) double value.
-
serialize
-
formatDebugString
-
createCachedEmptyValue
-
createForString
-
createCachedBoolean
-
createCachedErrorCode
-
toString
-
getValueType
Deprecated.POI 5.0.0, will be removed in 5.0, use getValueTypeEnum until switch to enum is fully done -
getValueTypeEnum
Returns the type of the cached value- Returns:
- A CellType
- Since:
- POI 5.0.0
-
getBooleanValue
public boolean getBooleanValue() -
getErrorValue
public int getErrorValue() -
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-