LazyStringList that wraps another LazyStringList such that
it cannot be modified via the wrapper.
| Modifier and Type | Field and Description |
|---|---|
| private final LazyStringList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(ByteString
element to be appended to this list element)Overrides java. Implements com. |
| public void | add(byte[]
element to be appended to this list element)Overrides java. Implements com. |
| public boolean | addAllByteArray(Collection<byte[]>
collection whose elements are to be added to this list element)Implements com. |
| public boolean | addAllByteString(Collection<? extends ByteString>
collection whose elements are to be added to this list element)Implements com. |
| public List | asByteArrayList()
Implements com. |
| public List | asByteStringList()
Implements com. |
| public String | get(int
index of the element to return index)Implements abstract java. Implements java. |
| public byte[] | getByteArray(int
index of the element to return index)Implements com. |
| public ByteString | getByteString(int
index of the element to return index)Implements com. |
| public Object | getRaw(int
index of the element to return index)Implements com. |
| public List | getUnderlyingElements()
Implements com. String or its equivalent UTF-8 encoded ByteString or byte[].
|
| public LazyStringList | getUnmodifiableView()
Implements com. |
| public Iterator | iterator()
Overrides java. Implements java. |
| public ListIterator | listIterator(final int
index of the first element to be returned from the
list iterator (by a call to index)next)Overrides java. Implements java. |
| public void | mergeFrom(LazyStringList other)
Implements com. |
| public void | set(int
index of the element to replace index, ByteString the element to be stored at the specified position element)Overrides java. Implements com. |
| public void | set(int
index of the element to replace index, byte[] the element to be stored at the specified position element)Overrides java. Implements com. |
| public int | size()
Implements abstract java. Implements java. |
| list | back to summary |
|---|---|
| private final LazyStringList list | |
| UnmodifiableLazyStringList | back to summary |
|---|---|
| public UnmodifiableLazyStringList(LazyStringList list) | |
| add | back to summary |
|---|---|
| public void add(ByteString element) Overrides java. Implements com. Doc from com. Appends the specified element to the end of this list (optional operation).
| |
| add | back to summary |
|---|---|
| public void add(byte[] element) Overrides java. Implements com. Doc from com. Appends the specified element to the end of this list (optional operation).
| |
| addAllByteArray | back to summary |
|---|---|
| public boolean addAllByteArray(Collection<byte[]> element) Implements com. Doc from com. Appends all elements in the specified byte[] collection to the end of this list.
| |
| addAllByteString | back to summary |
|---|---|
| public boolean addAllByteString(Collection<? extends ByteString> element) Implements com. Doc from com. Appends all elements in the specified ByteString collection to the end of this list.
| |
| asByteArrayList | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a mutable view of this list. Changes to the view will be made into the original list. This method is used in mutable API only.
| |
| asByteStringList | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a view of the data as a list of ByteStrings.
| |
| get | back to summary |
|---|---|
| public String get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list. | |
| getByteArray | back to summary |
|---|---|
| public byte[] getByteArray(int index) Implements com. Doc from com. Returns the element at the specified position in this list as byte[].
| |
| getByteString | back to summary |
|---|---|
| public ByteString getByteString(int index) Implements com. Doc from com. Returns the element at the specified position in this list as a ByteString.
| |
| getRaw | back to summary |
|---|---|
| public Object getRaw(int index) Implements com. Doc from com. Returns the element at the specified position in this list as an Object that will either be a String or a ByteString. | |
| getUnderlyingElements | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns an unmodifiable List of the underlying elements, each of which is either a
| |
| getUnmodifiableView | back to summary |
|---|---|
| public LazyStringList getUnmodifiableView() Implements com. Doc from com. Returns an unmodifiable view of the list.
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides java. Implements java. Doc from java. Returns an iterator over the elements in this list in proper sequence. | |
| listIterator | back to summary |
|---|---|
| public ListIterator Overrides java. Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper
sequence), starting at the specified position in the list.
The specified index indicates the first element that would be
returned by an initial call to
| |
| mergeFrom | back to summary |
|---|---|
| public void mergeFrom(LazyStringList other) Implements com. Doc from com. Merges all elements from another LazyStringList into this one. This method differs from
| |
| set | back to summary |
|---|---|
| public void set(int index, ByteString element) Overrides java. Implements com. Doc from com. Replaces the element at the specified position in this list with the specified element (optional operation).
| |
| set | back to summary |
|---|---|
| public void set(int index, byte[] element) Overrides java. Implements com. Doc from com. Replaces the element at the specified position in this list with the specified element (optional operation).
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |