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

public final Class ErrorConstant

extends Object
Class Inheritance
Imports
org.apache.logging.log4j.LogManager, .Logger, org.apache.poi.ss.usermodel.FormulaError

Represents a constant error code value as encoded in a constant values array.

This class is a type-safe wrapper for a 16-bit int value performing a similar job to ErrorEval.

Field Summary

Modifier and TypeField and Description
private final int
private static final ErrorConstant
private static final Logger
private static final ErrorConstant
private static final ErrorConstant
private static final ErrorConstant
private static final ErrorConstant
private static final ErrorConstant
private static final ErrorConstant

Constructor Summary

AccessConstructor and Description
private
ErrorConstant(int errorCode)

Method Summary

Modifier and TypeMethod and Description
public int
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public static ErrorConstant
valueOf(int errorCode)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_errorCodeback to summary
private final int _errorCode
DIV_0back to summary
private static final ErrorConstant DIV_0
LOGback to summary
private static final Logger LOG
NAback to summary
private static final ErrorConstant NA
NAMEback to summary
private static final ErrorConstant NAME
NULLback to summary
private static final ErrorConstant NULL
NUMback to summary
private static final ErrorConstant NUM
REFback to summary
private static final ErrorConstant REF
VALUEback to summary
private static final ErrorConstant VALUE

Constructor Detail

ErrorConstantback to summary
private ErrorConstant(int errorCode)

Method Detail

getErrorCodeback to summary
public int getErrorCode()
getTextback to summary
public String getText()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

valueOfback to summary
public static ErrorConstant valueOf(int errorCode)