CellValue
Contents
[
Hide
]Inheritance: java.lang.Object
public class CellValue
Represents the cell value and corresponding type.
Constructors
Constructor | Description |
---|---|
CellValue() |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
arg0 | java.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():
Type | Value |
---|---|
CellValueType.IS_NULL | null, any other object will be ignored |
CellValueType.IS_NUMERIC | double |
CellValueType.IS_DATE_TIME | DateTime |
CellValueType.IS_STRING | string |
CellValueType.IS_BOOL | bool |
CellValueType.IS_ERROR | error 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:
Parameter | Type | Description |
---|---|---|
value | int |
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():
Type | Value |
---|---|
CellValueType.IS_NULL | null, any other object will be ignored |
CellValueType.IS_NUMERIC | double |
CellValueType.IS_DATE_TIME | DateTime |
CellValueType.IS_STRING | string |
CellValueType.IS_BOOL | bool |
CellValueType.IS_ERROR | error string such as “#VALUE!”, “#NAME?”, … |
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |