listFW.visitor
Class ReverseList2<T>
java.lang.Object
listFW.visitor.ReverseList2<T>
- All Implemented Interfaces:
- IListAlgo<T,IList<T>,IListFactory<T>>
public class ReverseList2<T>
- extends Object
- implements IListAlgo<T,IList<T>,IListFactory<T>>
Reverses a particular kind of list only, but with reduced type safety due to delegating
to host instead of rest.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReverseList2
public ReverseList2()
emptyCase
public IMTList<T> emptyCase(IMTList<? extends T> host,
IListFactory<T>... fac)
- Specified by:
emptyCase
in interface IListAlgo<T,IList<T>,IListFactory<T>>
nonEmptyCase
public INEList<T> nonEmptyCase(INEList<? extends T> host,
IListFactory<T>... fac)
- Specified by:
nonEmptyCase
in interface IListAlgo<T,IList<T>,IListFactory<T>>