Top Description Fields Constructors Methods
org.apache.poi.ss.formula.ptg

public final Class LessThanPtg

extends ValueOperatorPtg
Class Inheritance

Less than operator PTG "<". The SID is taken from the Openoffice.orgs Documentation of the Excel File Format, Table 3.5.7

Field Summary

Modifier and TypeField and Description
public static final LessThanPtg
private static final String
LESSTHAN

identifier for LESS THAN char

public static final byte
sid

the sid for the less than operator as hex

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public LessThanPtg
public int

Returns:

int the number of operands
getNumberOfOperands
()

Implements abstract org.apache.poi.ss.formula.ptg.OperationPtg.getNumberOfOperands.

Get the number of operands for the Less than operator

public byte
public String

Returns:

String the Formula as a String
toFormulaString
(String[]
a String array of operands
operands
)

Implements abstract org.apache.poi.ss.formula.ptg.OperationPtg.toFormulaString.

Implementation of method from OperationsPtg

Inherited from org.apache.poi.ss.formula.ptg.ValueOperatorPtg:
getDefaultOperandClassgetSizeisBaseTokentoFormulaStringwrite

Field Detail

instanceback to summary
public static final LessThanPtg instance
LESSTHANback to summary
private static final String LESSTHAN

identifier for LESS THAN char

sidback to summary
public static final byte sid

the sid for the less than operator as hex

Constructor Detail

LessThanPtgback to summary
private LessThanPtg()

Method Detail

copyback to summary
public LessThanPtg copy()

Implements abstract org.apache.poi.ss.formula.ptg.Ptg.copy.

Implements org.apache.poi.common.Duplicatable.copy.

Returns:LessThanPtg

Doc from org.apache.poi.common.Duplicatable.copy.

a deep copy of the implementing class / instance

Annotations
@Override
getNumberOfOperandsback to summary
public int getNumberOfOperands()

Implements abstract org.apache.poi.ss.formula.ptg.OperationPtg.getNumberOfOperands.

Get the number of operands for the Less than operator

Returns:int

int the number of operands

getSidback to summary
public byte getSid()

Implements abstract org.apache.poi.ss.formula.ptg.Ptg.getSid.

Returns:byte

Doc from org.apache.poi.ss.formula.ptg.Ptg.getSid.

structure id of the parsed thing, or -1 if the record has no sid

Annotations
@Override
toFormulaStringback to summary
public String toFormulaString(String[] operands)

Implements abstract org.apache.poi.ss.formula.ptg.OperationPtg.toFormulaString.

Implementation of method from OperationsPtg

Parameters
operands:String[]

a String array of operands

Returns:String

String the Formula as a String