Class GreaterThanPtg


  • public class GreaterThanPtg
    extends OperationPtg
    Greater than operator PTG ">"
    Author:
    Cameron Riley (criley at ekmail.com)
    • Constructor Detail

      • GreaterThanPtg

        public GreaterThanPtg()
        Constructor. Creates new GreaterThanPtg
      • GreaterThanPtg

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

      • 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 Greater 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
      • 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