|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object listFW.visitor.Reverse<T>
public class Reverse<T>
Reverses a list. The first of the varargs (input[0]) needs to be an IListFactory.
Constructor Summary | |
---|---|
Reverse()
|
Method Summary | |
---|---|
IList<T> |
emptyCase(IMTList<? extends T> host,
IListFactory<T>... fac)
Returns the empty list. |
IList<T> |
nonEmptyCase(INEList<? extends T> host,
IListFactory<T>... fac)
Returns the reversed list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Reverse()
Method Detail |
---|
public IList<T> emptyCase(IMTList<? extends T> host, IListFactory<T>... fac)
emptyCase
in interface IListAlgo<T,IList<T>,IListFactory<T>>
fac
- fac[0] is a list factorypublic IList<T> nonEmptyCase(INEList<? extends T> host, IListFactory<T>... fac)
nonEmptyCase
in interface IListAlgo<T,IList<T>,IListFactory<T>>
fac
- fac[0] is a list factory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |