Class FormulaSpecialCachedValue

  • All Implemented Interfaces:
    GenericRecord

    @Internal
    public final class FormulaSpecialCachedValue
    extends java.lang.Object
    implements 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.
    • Method Detail

      • getTypeCode

        public int getTypeCode()
      • create

        public static FormulaSpecialCachedValue create​(long valueLongBits)
        Returns:
        null if the double value encoded by valueLongBits is a normal (non NaN) double value.
      • formatDebugString

        public java.lang.String formatDebugString()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getValueType

        @Deprecated
        public int getValueType()
        Deprecated.
        POI 5.0.0, will be removed in 5.0, use getValueTypeEnum until switch to enum is fully done
      • getValueTypeEnum

        public CellType 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

        public java.util.Map<java.lang.String,​java.util.function.Supplier<?>> getGenericProperties()
        Specified by:
        getGenericProperties in interface GenericRecord