|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.eloquence.api.UnifiedData
public class UnifiedData
Data container to hold string or integer values.
| Constructor Summary | |
|---|---|
UnifiedData(int intData)
Constructs a new UnifiedData object
containing an integer value. |
|
UnifiedData(java.lang.String strData)
Constructs a new UnifiedData object
containing a string value. |
|
| Method Summary | |
|---|---|
int |
getIntData()
Returns the contained value as int. |
java.lang.String |
getStringData()
Returns the contained value as String. |
boolean |
isStringData()
Returns the type of the contained value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnifiedData(java.lang.String strData)
UnifiedData object
containing a string value.
public UnifiedData(int intData)
UnifiedData object
containing an integer value.
| Method Detail |
|---|
public java.lang.String getStringData()
String.
Stringpublic int getIntData()
int.
int
java.lang.NumberFormatException - on a failed string value conversionpublic boolean isStringData()
true - the value type is String
false - the value type is int
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||