public static class ListTools.SeriesList
extends java.util.AbstractList
This provides a simple list implementation that synthesises elements from a leading and trailing string and the index into the list.
For example, a SeriesList with leader "" and trailer ":" will contain values like "0:", "1:", "2:" and so on. A SeriesList with leader "Chapter " and trailer "" will have values like "Chapter 5".
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(int indx) |
java.lang.String |
getLeader() |
java.lang.String |
getTrailer() |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic java.lang.String getLeader()
public java.lang.String getTrailer()
public int size()
size in interface java.util.Collectionsize in interface java.util.Listsize in class java.util.AbstractCollectionpublic java.lang.Object get(int indx)
get in interface java.util.Listget in class java.util.AbstractList