private static class Spaces.SpaceList extends CopyOnWriteArrayList<String>
ith entry is a string consisting of i spaces.
It populates itself the first time you ask for a particular string, and
caches the result.| Modifier | Constructor and Description |
|---|---|
private |
Spaces.SpaceList() |
| Modifier and Type | Method and Description |
|---|---|
String |
get(int index) |
private void |
populate(int newSize)
Populates this list with all prefix strings of a given string.
|
add, add, addAll, addAll, addAllAbsent, addIfAbsent, clear, clone, contains, containsAll, equals, hashCode, indexOf, indexOf, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, toStringpublic String get(int index)
private void populate(int newSize)
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.