|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lrs.visitor.GetNth
public class GetNth
Return the n'th element in the list.
Field Summary | |
---|---|
static GetNth |
Singleton
|
Constructor Summary | |
---|---|
private |
GetNth()
|
Method Summary | |
---|---|
java.lang.Object |
emptyCase(LRStruct host,
java.lang.Object inp)
Operates on an empty LRStruct host, given an input object. |
java.lang.Object |
nonEmptyCase(LRStruct host,
java.lang.Object inp)
Operates on a non-empty LRStruct host, given an input object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final GetNth Singleton
Constructor Detail |
---|
private GetNth()
Method Detail |
---|
public java.lang.Object emptyCase(LRStruct host, java.lang.Object inp)
emptyCase
in interface IAlgo
host
- an empty LRStruct.inp
- index of element
java.lang.IllegalArgumentException
public java.lang.Object nonEmptyCase(LRStruct host, java.lang.Object inp)
nonEmptyCase
in interface IAlgo
host
- a non-empty LRStruct.inp
- index of element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |