org.excel4j.object
Class XLNumber

java.lang.Object
  extended by org.excel4j.XLObject
      extended by org.excel4j.object.XLNumber

public class XLNumber
extends XLObject

Encapsulates a double.


Field Summary
 
Fields inherited from class org.excel4j.XLObject
handle, xltype
 
Method Summary
 boolean asBoolean()
          Extract an integer from the object.
 int asInteger()
          Extract an integer from the object.
 double asNumber()
          Extract a number from the object.
 java.lang.String asString()
          Extract a string from the object.
 
Methods inherited from class org.excel4j.XLObject
asArray, asError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

asNumber

public double asNumber()
Description copied from class: XLObject
Extract a number from the object.

Overrides:
asNumber in class XLObject
Returns:
double.

asInteger

public int asInteger()
Description copied from class: XLObject
Extract an integer from the object.

Overrides:
asInteger in class XLObject
Returns:
int.

asString

public java.lang.String asString()
Description copied from class: XLObject
Extract a string from the object.

Overrides:
asString in class XLObject
Returns:
String.

asBoolean

public boolean asBoolean()
Description copied from class: XLObject
Extract an integer from the object.

Overrides:
asBoolean in class XLObject
Returns:
boolean.