Package org.apache.poi.ss.formula.ptg
Class LessThanPtg
java.lang.Object
org.apache.poi.ss.formula.ptg.Ptg
org.apache.poi.ss.formula.ptg.OperationPtg
org.apache.poi.ss.formula.ptg.ValueOperatorPtg
org.apache.poi.ss.formula.ptg.LessThanPtg
- All Implemented Interfaces:
org.apache.poi.common.Duplicatable
,GenericRecord
Less than operator PTG "<". The SID is taken from the
Openoffice.orgs Documentation of the Excel File Format,
Table 3.5.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LessThanPtg
static final byte
the sid for the less than operator as hexFields inherited from class org.apache.poi.ss.formula.ptg.OperationPtg
TYPE_BINARY, TYPE_FUNCTION, TYPE_UNARY
Fields inherited from class org.apache.poi.ss.formula.ptg.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
int
Get the number of operands for the Less than operatorbyte
getSid()
toFormulaString
(String[] operands) Implementation of method from OperationsPtgMethods inherited from class org.apache.poi.ss.formula.ptg.ValueOperatorPtg
getDefaultOperandClass, getSize, isBaseToken, toFormulaString, write
Methods inherited from class org.apache.poi.ss.formula.ptg.OperationPtg
getGenericProperties
Methods inherited from class org.apache.poi.ss.formula.ptg.Ptg
createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, serializePtgs, setClass, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
Field Details
-
sid
public static final byte sidthe sid for the less than operator as hex- See Also:
-
instance
-
-
Method Details
-
getSid
public byte getSid() -
getNumberOfOperands
public int getNumberOfOperands()Get the number of operands for the Less than operator- Specified by:
getNumberOfOperands
in classOperationPtg
- Returns:
- int the number of operands
-
toFormulaString
Implementation of method from OperationsPtg- Specified by:
toFormulaString
in classOperationPtg
- Parameters:
operands
- a String array of operands- Returns:
- String the Formula as a String
- See Also:
-
copy
-