public interface LazyStringList extends List<String>
This only adds additional methods that are required for the use in the protocol buffer code in order to be able successfuly round trip byte arrays through parsing and serialization without conversion to strings. It's not attempting to support the functionality of say List<ByteString>, hence why only these two very specific methods are added.
Modifier and Type | Method and Description |
---|---|
void |
add(ByteString element)
Appends the specified element to the end of this list (optional
operation).
|
ByteString |
getByteString(int index)
Returns the element at the specified position in this list as a ByteString.
|
ByteString getByteString(int index)
index
- index of the element to returnIndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= size())void add(ByteString element)
element
- element to be appended to this listUnsupportedOperationException
- if the add operation
is not supported by this listCopyright © 2008-2013. All Rights Reserved.