|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.components.elementprocessor.types.NumericResult
public class NumericResult
This class holds the result of a numeric conversion. The result is either a valid value, or an IOException that was created by the numeric converter
| Constructor Summary | |
|---|---|
NumericResult(IOException exception)
Constructor |
|
NumericResult(Number value)
Constructor |
|
| Method Summary | |
|---|---|
double |
doubleValue()
Get the value, if possible, as a double |
int |
intValue()
Get the value, if possible, as an int |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumericResult(Number value)
value - the numeric valuepublic NumericResult(IOException exception)
exception - the exception to be thrown| Method Detail |
|---|
public int intValue()
throws IOException
IOException - if there was a problem converting the
number
public double doubleValue()
throws IOException
IOException - if there was a problem converting the
number
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||