Class LessThanPtg

All Implemented Interfaces:
org.apache.poi.common.Duplicatable, GenericRecord

public final class LessThanPtg extends ValueOperatorPtg
Less than operator PTG "<". The SID is taken from the Openoffice.orgs Documentation of the Excel File Format, Table 3.5.7
  • Field Details

    • sid

      public static final byte sid
      the sid for the less than operator as hex
      See Also:
    • instance

      public static final LessThanPtg instance
  • Method Details

    • getSid

      public byte getSid()
      Specified by:
      getSid in class Ptg
      Returns:
      structure id of the parsed thing, or -1 if the record has no sid
    • getNumberOfOperands

      public int getNumberOfOperands()
      Get the number of operands for the Less than operator
      Specified by:
      getNumberOfOperands in class OperationPtg
      Returns:
      int the number of operands
    • toFormulaString

      public String toFormulaString(String[] operands)
      Implementation of method from OperationsPtg
      Specified by:
      toFormulaString in class OperationPtg
      Parameters:
      operands - a String array of operands
      Returns:
      String the Formula as a String
      See Also:
    • copy

      public LessThanPtg copy()
      Specified by:
      copy in interface org.apache.poi.common.Duplicatable
      Specified by:
      copy in class Ptg