Package org.apache.poi.ss.formula.ptg
Class GreaterThanPtg
- 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.GreaterThanPtg
-
- All Implemented Interfaces:
Serializable
,Duplicatable
,GenericRecord
public final class GreaterThanPtg extends ValueOperatorPtg
Greater than operator PTG ">"- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static GreaterThanPtg
instance
static byte
sid
-
Fields 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GreaterThanPtg
copy()
int
getNumberOfOperands()
Get the number of operands for the Less than operatorbyte
getSid()
String
toFormulaString(String[] operands)
Implementation of method from OperationsPtg-
Methods 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, toInternalFormulaString
-
Methods inherited from class org.apache.poi.ss.formula.ptg.Ptg
createPtg, createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSize, getEncodedSizeWithoutArrayData, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, readTokens, serializePtgs, serializePtgs, setClass, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
-
-
-
Field Detail
-
sid
public static final byte sid
- See Also:
- Constant Field Values
-
instance
public static final GreaterThanPtg instance
-
-
Method Detail
-
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
public String toFormulaString(String[] operands)
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:
OperationPtg.getNumberOfOperands()
-
copy
public GreaterThanPtg copy()
- Specified by:
copy
in interfaceDuplicatable
- Specified by:
copy
in classPtg
- Returns:
- a deep copy of the implementing class / instance
-
-