public class StTypes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.Integer |
version
The Stata version calling this class
|
Constructor and Description |
---|
StTypes() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Byte |
asByte(java.lang.Integer varid,
java.lang.Number obid)
Method to cast datum returned by the Data.getNum method of the Stata
Java API as a Byte value
|
static java.lang.Double |
asDouble(java.lang.Integer varid,
java.lang.Number obid)
Method to cast datum returned by the Data.getNum method of the Stata
Java API as a Byte value
|
static java.lang.Float |
asFloat(java.lang.Integer varid,
java.lang.Number obid)
Method to cast datum returned by the Data.getNum method of the Stata
Java API as a Byte value
|
static java.lang.Integer |
asInteger(java.lang.Integer varid,
java.lang.Number obid)
Method to cast datum returned by the Data.getNum method of the Stata
Java API as a Byte value
|
static java.lang.Long |
asLong(java.lang.Integer varid,
java.lang.Number obid)
Method to cast datum returned by the Data.getNum method of the Stata
Java API as a Byte value
|
static java.lang.Short |
asShort(java.lang.Integer varid,
java.lang.Number obid)
Method to cast datum returned by the Data.getNum method of the Stata
Java API as a Byte value
|
private static final java.lang.Integer version
public static java.lang.Byte asByte(java.lang.Integer varid, java.lang.Number obid)
varid
- The variable index valueobid
- The observation index valuepublic static java.lang.Integer asInteger(java.lang.Integer varid, java.lang.Number obid)
varid
- The variable index valueobid
- The observation index valuepublic static java.lang.Short asShort(java.lang.Integer varid, java.lang.Number obid)
varid
- The variable index valueobid
- The observation index valuepublic static java.lang.Long asLong(java.lang.Integer varid, java.lang.Number obid)
varid
- The variable index valueobid
- The observation index valuepublic static java.lang.Float asFloat(java.lang.Integer varid, java.lang.Number obid)
varid
- The variable index valueobid
- The observation index valuepublic static java.lang.Double asDouble(java.lang.Integer varid, java.lang.Number obid)
varid
- The variable index valueobid
- The observation index value