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 |
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, forEach, hashCode, indexOf, indexOf, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, streampublic String get(int index)
private void populate(int newSize)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.