An implementation of LazyStringList that wraps another LazyStringList such that it cannot be modified via the wrapper.
- Author
- jonp@.nosp@m.goog.nosp@m.le.co.nosp@m.m (Jon Perlow)
◆ UnmodifiableLazyStringList()
com.google.protobuf.UnmodifiableLazyStringList.UnmodifiableLazyStringList |
( |
LazyStringList |
list | ) |
|
|
inline |
◆ add() [1/2]
void com.google.protobuf.UnmodifiableLazyStringList.add |
( |
ByteString |
element | ) |
|
|
inline |
Appends the specified element to the end of this list (optional operation).
- Parameters
-
element | element to be appended to this list |
- Exceptions
-
UnsupportedOperationException | if the add operation is not supported by this list |
Implements com.google.protobuf.LazyStringList.
◆ add() [2/2]
void com.google.protobuf.UnmodifiableLazyStringList.add |
( |
byte [] |
element | ) |
|
|
inline |
Appends the specified element to the end of this list (optional operation).
- Parameters
-
element | element to be appended to this list |
- Exceptions
-
UnsupportedOperationException | if the add operation is not supported by this list |
Implements com.google.protobuf.LazyStringList.
◆ addAllByteArray()
boolean com.google.protobuf.UnmodifiableLazyStringList.addAllByteArray |
( |
Collection< byte[]> |
c | ) |
|
|
inline |
Appends all elements in the specified byte[] collection to the end of this list.
- Parameters
-
c | collection whose elements are to be added to this list |
- Returns
- true if this list changed as a result of the call
- Exceptions
-
UnsupportedOperationException | if the addAllByteArray operation is not supported by this list |
Implements com.google.protobuf.LazyStringList.
◆ addAllByteString()
boolean com.google.protobuf.UnmodifiableLazyStringList.addAllByteString |
( |
Collection<? extends ByteString > |
c | ) |
|
|
inline |
Appends all elements in the specified ByteString collection to the end of this list.
- Parameters
-
c | collection whose elements are to be added to this list |
- Returns
- true if this list changed as a result of the call
- Exceptions
-
UnsupportedOperationException | if the addAllByteString operation is not supported by this list |
Implements com.google.protobuf.LazyStringList.
◆ asByteArrayList()
List<byte[]> com.google.protobuf.UnmodifiableLazyStringList.asByteArrayList |
( |
| ) |
|
|
inline |
◆ asByteStringList()
List<ByteString> com.google.protobuf.UnmodifiableLazyStringList.asByteStringList |
( |
| ) |
|
|
inline |
◆ get()
String com.google.protobuf.UnmodifiableLazyStringList.get |
( |
int |
index | ) |
|
|
inline |
◆ getByteArray()
byte [] com.google.protobuf.UnmodifiableLazyStringList.getByteArray |
( |
int |
index | ) |
|
|
inline |
Returns the element at the specified position in this list as byte[].
- Parameters
-
index | index of the element to return |
- Returns
- the element at the specified position in this list
- Exceptions
-
IndexOutOfBoundsException | if the index is out of range ( ) |
Implements com.google.protobuf.LazyStringList.
◆ getByteString()
ByteString com.google.protobuf.UnmodifiableLazyStringList.getByteString |
( |
int |
index | ) |
|
|
inline |
Returns the element at the specified position in this list as a ByteString.
- Parameters
-
index | index of the element to return |
- Returns
- the element at the specified position in this list
- Exceptions
-
IndexOutOfBoundsException | if the index is out of range ( ) |
Implements com.google.protobuf.LazyStringList.
◆ getRaw()
Object com.google.protobuf.UnmodifiableLazyStringList.getRaw |
( |
int |
index | ) |
|
|
inline |
Returns the element at the specified position in this list as an Object that will either be a String or a ByteString.
- Parameters
-
index | index of the element to return |
- Returns
- the element at the specified position in this list
- Exceptions
-
IndexOutOfBoundsException | if the index is out of range ( ) |
Implements com.google.protobuf.LazyStringList.
◆ getUnderlyingElements()
List<?> com.google.protobuf.UnmodifiableLazyStringList.getUnderlyingElements |
( |
| ) |
|
|
inline |
◆ getUnmodifiableView()
LazyStringList com.google.protobuf.UnmodifiableLazyStringList.getUnmodifiableView |
( |
| ) |
|
|
inline |
◆ iterator()
Iterator<String> com.google.protobuf.UnmodifiableLazyStringList.iterator |
( |
| ) |
|
|
inline |
◆ listIterator()
ListIterator<String> com.google.protobuf.UnmodifiableLazyStringList.listIterator |
( |
final int |
index | ) |
|
|
inline |
◆ mergeFrom()
◆ set() [1/2]
void com.google.protobuf.UnmodifiableLazyStringList.set |
( |
int |
index, |
|
|
ByteString |
element |
|
) |
| |
|
inline |
Replaces the element at the specified position in this list with the specified element (optional operation).
- Parameters
-
index | index of the element to replace |
element | the element to be stored at the specified position |
- Exceptions
-
UnsupportedOperationException | if the set operation is not supported by this list IndexOutOfBoundsException if the index is out of range ( ) |
Implements com.google.protobuf.LazyStringList.
◆ set() [2/2]
void com.google.protobuf.UnmodifiableLazyStringList.set |
( |
int |
index, |
|
|
byte [] |
element |
|
) |
| |
|
inline |
Replaces the element at the specified position in this list with the specified element (optional operation).
- Parameters
-
index | index of the element to replace |
element | the element to be stored at the specified position |
- Exceptions
-
UnsupportedOperationException | if the set operation is not supported by this list IndexOutOfBoundsException if the index is out of range ( ) |
Implements com.google.protobuf.LazyStringList.
◆ size()
int com.google.protobuf.UnmodifiableLazyStringList.size |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: