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, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public java.lang.String getLeader()
public java.lang.String getTrailer()
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class java.util.AbstractCollection
public java.lang.Object get(int indx)
get
in interface java.util.List
get
in class java.util.AbstractList