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(){@inheritDoc} |
|
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(){@inheritDoc} |
| 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.
{@inheritDoc}
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.
{@inheritDoc}
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.