|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
WRAPPED_TYPE - underlying type of the used back-end, see RObjARR_TYPE - used Java array to store the data.EL_TYPE - boxed type of an element of ARR_TYPE. Extends Object.
Example: For RInteger ARR_TYPE equals int[] andpublic interface RVectorFactor<WRAPPED_TYPE,ARR_TYPE,EL_TYPE>
Common interface for Vectors and Factors. Extends RObj.
| Method Summary | |
|---|---|
EL_TYPE |
get(int i)
Returns the element at the specified position in this vector/factor. |
ARR_TYPE |
getData()
Returns an array containing all of the elements in this vector/factor in proper sequence |
List<EL_TYPE> |
getDataAsList()
Returns a list containing all of the elements in this vector/factor in proper sequence |
EL_TYPE[] |
getDataAsObjArr()
Returns an array containing all of the elements in this vector/factor in proper sequence. |
int |
getLength()
Returns the number of elements in this vector/factor. |
String |
getName(int i)
Returns the name at the specified position of this vector/factor. |
String[] |
getNames()
If no name is set null is returned. |
List<String> |
getNamesAsList()
If no name is set null is returned. |
boolean |
isNA(int i)
Returns true if the specified element is NA. |
| Methods inherited from interface org.af.jhlir.call.RObj |
|---|
asRChar, asRDataFrame, asREnvironment, asRFactor, asRInteger, asRList, asRLogical, asRMatrixDouble, asRNumeric, asS3Obj, getWrapped |
| Method Detail |
|---|
int getLength()
ARR_TYPE getData()
EL_TYPE[] getDataAsObjArr()
List<EL_TYPE> getDataAsList()
EL_TYPE get(int i)
i - index of the element to return
IndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= getLength())String getName(int i)
RCallServices.NA_CHAR is returned.
i - index of the position
String[] getNames()
null is returned.
Otherwise returns a String Array of length equal to getLength()
that contains the names of the positions in this vector/factor.
If a name is not set RCallServices.NA_CHAR is used.
List<String> getNamesAsList()
null is returned.
Returns a List of Strings of size equal to getLength()
that contains the names of the positions in this vector/factor.
If a name is not set RCallServices.NA_CHAR is used.
boolean isNA(int i)
i - index of the element to test for NA
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||