extended ListSource

This commit is contained in:
Timo Westkämper 2010-05-19 12:53:49 +00:00
parent 924e6baf4c
commit 97af15ca2b
3 changed files with 15 additions and 0 deletions

View File

@ -30,4 +30,9 @@ public class EmptyListSource<T> implements ListSource<T> {
return 0l;
}
@Override
public T getResult(int index) {
return null;
}
}

View File

@ -38,4 +38,9 @@ public interface ListSource<T>{
*/
List<T> getResults(int fromIndex, int toIndex);
/**
* @param index
* @return
*/
T getResult(int index);
}

View File

@ -42,4 +42,9 @@ public class SimpleListSource<T> implements ListSource<T> {
return list.size();
}
@Override
public T getResult(int index) {
return list.get(index);
}
}