CellValue

Inheritance: java.lang.Object

public class CellValue

Represents the cell value and corresponding type.

Constructors

ConstructorDescription
CellValue()

Methods

MethodDescription
equals(Object arg0)
getClass()
getType()Gets the type of cell value.
getValue()Gets the cell value.
hashCode()
notify()
notifyAll()
setType(int value)Sets the type of cell value.
setValue(Object value)Sets the cell value.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

CellValue()

public CellValue()

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getType()

public int getType()

Gets the type of cell value.

See CellValueType.

Returns: int

getValue()

public Object getValue()

Gets the cell value.

Remarks

The value must be of the correct type of object corresponding to the getType():

TypeValue
CellValueType.IS_NULLnull, any other object will be ignored
CellValueType.IS_NUMERICdouble
CellValueType.IS_DATE_TIMEDateTime
CellValueType.IS_STRINGstring
CellValueType.IS_BOOLbool
CellValueType.IS_ERRORerror string such as “#VALUE!”, “#NAME?”, …

Returns: java.lang.Object

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setType(int value)

public void setType(int value)

Sets the type of cell value.

See CellValueType.

Parameters:

ParameterTypeDescription
valueint

setValue(Object value)

public void setValue(Object value)

Sets the cell value.

Remarks

The value must be of the correct type of object corresponding to the getType():

TypeValue
CellValueType.IS_NULLnull, any other object will be ignored
CellValueType.IS_NUMERICdouble
CellValueType.IS_DATE_TIMEDateTime
CellValueType.IS_STRINGstring
CellValueType.IS_BOOLbool
CellValueType.IS_ERRORerror string such as “#VALUE!”, “#NAME?”, …

Parameters:

ParameterTypeDescription
valuejava.lang.Object

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int