public class ValueList
extends AbstractList
List implementation that lazily converts overlay Value instances on access.
| Constructor and description |
|---|
ValueList(boolean lazyChop)Creates a lazy list wrapper. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
add(Object obj)Adds a parsed element without forcing conversion. |
|
public void |
chopList()Chops every overlay-backed element currently stored in the list. |
|
public void |
clear()Removes all of the elements from this list (optional operation). The list will be empty after this call returns.
|
|
public Object |
get(int index)Converts the indexed element on demand and optionally chops nested containers. |
|
public Iterator<Object> |
iterator()Returns an iterator after materializing all pending Value entries. |
|
public List<Object> |
list()Exposes the raw backing list used during lazy parsing. |
|
public int |
size() |
| Methods inherited from class | Name |
|---|---|
class AbstractList |
add, add, addAll, addAll, clear, contains, containsAll, equals, forEach, get, getClass, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, notify, notifyAll, parallelStream, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, stream, subList, toArray, toArray, toArray, toString, wait, wait, wait |
Creates a lazy list wrapper.
lazyChop - whether nested values should be chopped when touchedAdds a parsed element without forcing conversion.
obj - element to appendtrueChops every overlay-backed element currently stored in the list.
Removes all of the elements from this list (optional operation). The list will be empty after this call returns.
clear operation
is not supported by this listremoveRange(0, size()).
Note that this implementation throws an
UnsupportedOperationException unless remove(int
index) or removeRange(int fromIndex, int toIndex) is
overridden.
Converts the indexed element on demand and optionally chops nested containers.
index - element indexReturns an iterator after materializing all pending Value entries.
Exposes the raw backing list used during lazy parsing.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.