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

public final Class IntPtg

extends ScalarConstantPtg
Class Inheritance
Imports
java.util.Map, java.util.function.Supplier, org.apache.poi.util.GenericRecordUtil, .LittleEndianInput, .LittleEndianOutput

Integer (unsigned short integer) Stores an unsigned short value (java int) in a formula

Field Summary

Modifier and TypeField and Description
private final int
private static final int
private static final int
public static final byte
public static final int

Constructor Summary

AccessConstructor and Description
public
public
IntPtg(int value)

Method Summary

Modifier and TypeMethod and Description
public IntPtg
public Map<String, Supplier<?>>
public byte
public int
public int
public static boolean

Returns:

true if the specified value is within the range of values IntPtg can represent.
isInRange
(int i)

Excel represents integers 0..65535 with the tInt token.

public String
toFormulaString()

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

return a string representation of this token alone

public void
Inherited from org.apache.poi.ss.formula.ptg.ScalarConstantPtg:
getDefaultOperandClassisBaseToken

Field Detail

field_1_valueback to summary
private final int field_1_value
MAX_VALUEback to summary
private static final int MAX_VALUE
MIN_VALUEback to summary
private static final int MIN_VALUE
sidback to summary
public static final byte sid
SIZEback to summary
public static final int SIZE

Constructor Detail

IntPtgback to summary
public IntPtg(LittleEndianInput in)
IntPtgback to summary
public IntPtg(int value)

Method Detail

copyback to summary
public IntPtg copy()

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

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

Returns:IntPtg

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

a deep copy of the implementing class / instance

Annotations
@Override
getGenericPropertiesback to summary
public Map<String, Supplier<?>> getGenericProperties()

Implements org.apache.poi.common.usermodel.GenericRecord.getGenericProperties.

Annotations
@Override
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
getSizeback to summary
public int getSize()

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

Returns:int

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

the encoded length of this Ptg, including the initial Ptg type identifier byte.

Annotations
@Override
getValueback to summary
public int getValue()
isInRangeback to summary
public static boolean isInRange(int i)

Excel represents integers 0..65535 with the tInt token.

Returns:boolean

true if the specified value is within the range of values IntPtg can represent.

toFormulaStringback to summary
public String toFormulaString()

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

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

return a string representation of this token alone

Annotations
@Override
writeback to summary
public void write(LittleEndianOutput out)

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

Annotations
@Override