Class LessThanPtg


public class LessThanPtg extends OperationPtg
Less than operator PTG "<". The SID is taken from the Openoffice.orgs Documentation of the Excel File Format, Table 3.5.7
Author:
Cameron Riley (criley at ekmail.com)
  • Field Details

  • Constructor Details

    • LessThanPtg

      public LessThanPtg()
      Constructor. Creates new LessThanPtg
    • LessThanPtg

      public LessThanPtg(RecordInputStream in)
      Constructor. Create a new LessThanPtg.
      Parameters:
      in - the RecordInputstream to read the record from
  • Method Details

    • writeBytes

      public void writeBytes(byte[] array, int offset)
      Write the sid to an array
      Specified by:
      writeBytes in class Ptg
      Parameters:
      array - the array of bytes to write the sid to
      offset - the offset to add the sid to
    • getSize

      public int getSize()
      Get the size of the sid
      Specified by:
      getSize in class Ptg
      Returns:
      int the size of the sid in terms of byte additions to an array
    • getType

      public int getType()
      Get the type of PTG for Less Than
      Specified by:
      getType in class OperationPtg
      Returns:
      int the identifier for the type
    • 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(Workbook book)
      Implementation of method from Ptg
      Specified by:
      toFormulaString in class Ptg
      Parameters:
      book - the Sheet References
    • 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:
    • getDefaultOperandClass

      public byte getDefaultOperandClass()
      Get the default operands class value
      Overrides:
      getDefaultOperandClass in class OperationPtg
      Returns:
      byte the Ptg Class Value as a byte from the Ptg Parent object
    • clone

      public Object clone()
      Implementation of clone method from Object
      Specified by:
      clone in class Ptg
      Returns:
      Object a clone of this class as an Object