|
||||||||||
| 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 RObjpublic interface RList<WRAPPED_TYPE>
Interface for a RList Object that extends RObj.
| Method Summary | |
|---|---|
RObj |
get(int i)
Returns the element at the specified position in this list. |
RObj |
get(String name)
Returns the element at the first position which has the given name in this list or null if no such name exists |
int |
getLength()
Returns the number of elements in this list. |
String |
getName(int i)
Returns the name at the specified position of this list. |
String[] |
getNames()
If no name is set null is returned. |
List<String> |
getNamesAsList()
If no name is set null is returned. |
boolean |
hasNames()
List can either be named or unnamed. |
| Methods inherited from interface org.af.jhlir.call.RObj |
|---|
asRChar, asRDataFrame, asREnvironment, asRFactor, asRInteger, asRList, asRLogical, asRMatrixDouble, asRNumeric, asS3Obj, getWrapped |
| Method Detail |
|---|
int getLength()
RObj get(int i)
i - index of the element to return
IndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= getLength())RObj get(String name)
name - name of the element to return
boolean hasNames()
true iff the positions of the list are namedString getName(int i)
i - index of the position
NullPointerException - if hasNames() is falseString[] getNames()
null is returned.
Otherwise returns a String Array of length equal to getLength()
that contains the names of the positions in this list.
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 list.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||