public class JsonValueList<E> extends AbstractList<E> implements JsonValueWrapper
modCount
Constructor and Description |
---|
JsonValueList(JsonValue jsonValue)
TODO: Description.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
E element)
Inserts the specified element at the specified position in this list.
|
void |
clear()
Removes all of the elements from this list.
|
boolean |
equals(Object o)
Compares the specified object with this list for equality.
|
E |
get(int index)
Returns the element at the specified position in this list.
|
int |
hashCode()
Returns the hash code value for this list.
|
E |
remove(int index)
Removes the element at the specified position in this list.
|
E |
set(int index,
E element)
Replaces the element at the specified position in this list with the specified element.
|
int |
size()
Returns the number of elements in this list.
|
JsonValue |
unwrap()
TODO: Description.
|
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public JsonValueList(JsonValue jsonValue)
jsonValue
- TODO.JsonValueException
- if the jsonValue
is not a List.public JsonValue unwrap()
JsonValueWrapper
unwrap
in interface JsonValueWrapper
public int size()
size
in interface Collection<E>
size
in interface List<E>
size
in class AbstractCollection<E>
public E get(int index)
get
in interface List<E>
get
in class AbstractList<E>
index
- index of the element to return.IndexOutOfBoundsException
- if the index is out of range.public E set(int index, E element)
set
in interface List<E>
set
in class AbstractList<E>
index
- index of the element to replace.element
- element to be stored at the specified position.IndexOutOfBoundsException
- if the index is out of range.public void add(int index, E element)
add
in interface List<E>
add
in class AbstractList<E>
index
- index at which the specified element is to be inserted.element
- element to be inserted.IndexOutOfBoundsException
- if the index is out of range.public E remove(int index)
public void clear()
clear
in interface Collection<E>
clear
in interface List<E>
clear
in class AbstractList<E>
public boolean equals(Object o)
equals
in interface Collection<E>
equals
in interface List<E>
equals
in class AbstractList<E>
o
- the object to be compared for equality with this list.true
if the specified object is equal to this list.public int hashCode()
hashCode
in interface Collection<E>
hashCode
in interface List<E>
hashCode
in class AbstractList<E>
Copyright © 2025 Open Identity Platform Community. All rights reserved.