Public Member Functions | Private Attributes | List of all members
com.google.protobuf.UnmodifiableLazyStringList Class Reference
Inheritance diagram for com.google.protobuf.UnmodifiableLazyStringList:
Inheritance graph
[legend]

Public Member Functions

void add (byte[] element)
 
void add (ByteString element)
 
boolean addAllByteArray (Collection< byte[]> element)
 
boolean addAllByteString (Collection<? extends ByteString > element)
 
List< byte[]> asByteArrayList ()
 
List< ByteStringasByteStringList ()
 
String get (int index)
 
byte[] getByteArray (int index)
 
ByteString getByteString (int index)
 
Object getRaw (int index)
 
List<?> getUnderlyingElements ()
 
LazyStringList getUnmodifiableView ()
 
Iterator< String > iterator ()
 
ListIterator< String > listIterator (final int index)
 
void mergeFrom (LazyStringList other)
 
void set (int index, byte[] element)
 
void set (int index, ByteString element)
 
int size ()
 
 UnmodifiableLazyStringList (LazyStringList list)
 

Private Attributes

final LazyStringList list
 

Detailed Description

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)

Definition at line 47 of file UnmodifiableLazyStringList.java.

Constructor & Destructor Documentation

◆ UnmodifiableLazyStringList()

com.google.protobuf.UnmodifiableLazyStringList.UnmodifiableLazyStringList ( LazyStringList  list)
inline

Definition at line 52 of file UnmodifiableLazyStringList.java.

Member Function Documentation

◆ add() [1/2]

void com.google.protobuf.UnmodifiableLazyStringList.add ( byte[]  element)
inline

Appends the specified element to the end of this list (optional operation).

Parameters
elementelement to be appended to this list
Exceptions
UnsupportedOperationExceptionif the add operation is not supported by this list

Implements com.google.protobuf.LazyStringList.

Definition at line 97 of file UnmodifiableLazyStringList.java.

◆ add() [2/2]

void com.google.protobuf.UnmodifiableLazyStringList.add ( ByteString  element)
inline

Appends the specified element to the end of this list (optional operation).

Parameters
elementelement to be appended to this list
Exceptions
UnsupportedOperationExceptionif the add operation is not supported by this list

Implements com.google.protobuf.LazyStringList.

Definition at line 77 of file UnmodifiableLazyStringList.java.

◆ 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
ccollection whose elements are to be added to this list
Returns
true if this list changed as a result of the call
Exceptions
UnsupportedOperationExceptionif the addAllByteArray operation is not supported by this list

Implements com.google.protobuf.LazyStringList.

Definition at line 107 of file UnmodifiableLazyStringList.java.

◆ 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
ccollection whose elements are to be added to this list
Returns
true if this list changed as a result of the call
Exceptions
UnsupportedOperationExceptionif the addAllByteString operation is not supported by this list

Implements com.google.protobuf.LazyStringList.

Definition at line 87 of file UnmodifiableLazyStringList.java.

◆ asByteArrayList()

List<byte[]> com.google.protobuf.UnmodifiableLazyStringList.asByteArrayList ( )
inline

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.

Implements com.google.protobuf.LazyStringList.

Definition at line 197 of file UnmodifiableLazyStringList.java.

◆ asByteStringList()

List<ByteString> com.google.protobuf.UnmodifiableLazyStringList.asByteStringList ( )
inline

Returns a view of the data as a list of ByteStrings.

Implements com.google.protobuf.ProtocolStringList.

Definition at line 202 of file UnmodifiableLazyStringList.java.

◆ get()

String com.google.protobuf.UnmodifiableLazyStringList.get ( int  index)
inline

Definition at line 57 of file UnmodifiableLazyStringList.java.

◆ getByteArray()

byte [] com.google.protobuf.UnmodifiableLazyStringList.getByteArray ( int  index)
inline

Returns the element at the specified position in this list as byte[].

Parameters
indexindex of the element to return
Returns
the element at the specified position in this list
Exceptions
IndexOutOfBoundsExceptionif the index is out of range ( )

Implements com.google.protobuf.LazyStringList.

Definition at line 92 of file UnmodifiableLazyStringList.java.

◆ getByteString()

ByteString com.google.protobuf.UnmodifiableLazyStringList.getByteString ( int  index)
inline

Returns the element at the specified position in this list as a ByteString.

Parameters
indexindex of the element to return
Returns
the element at the specified position in this list
Exceptions
IndexOutOfBoundsExceptionif the index is out of range ( )

Implements com.google.protobuf.LazyStringList.

Definition at line 72 of file UnmodifiableLazyStringList.java.

◆ 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
indexindex of the element to return
Returns
the element at the specified position in this list
Exceptions
IndexOutOfBoundsExceptionif the index is out of range ( )

Implements com.google.protobuf.LazyStringList.

Definition at line 62 of file UnmodifiableLazyStringList.java.

◆ getUnderlyingElements()

List<?> com.google.protobuf.UnmodifiableLazyStringList.getUnderlyingElements ( )
inline

Returns an unmodifiable List of the underlying elements, each of which is either a

String

or its equivalent UTF-8 encoded

ByteString

or byte[]. It is an error for the caller to modify the returned List, and attempting to do so will result in an {}.

Implements com.google.protobuf.LazyStringList.

Definition at line 186 of file UnmodifiableLazyStringList.java.

◆ getUnmodifiableView()

LazyStringList com.google.protobuf.UnmodifiableLazyStringList.getUnmodifiableView ( )
inline

Returns an unmodifiable view of the list.

Implements com.google.protobuf.LazyStringList.

Definition at line 207 of file UnmodifiableLazyStringList.java.

◆ iterator()

Iterator<String> com.google.protobuf.UnmodifiableLazyStringList.iterator ( )
inline

Definition at line 164 of file UnmodifiableLazyStringList.java.

◆ listIterator()

ListIterator<String> com.google.protobuf.UnmodifiableLazyStringList.listIterator ( final int  index)
inline

Definition at line 112 of file UnmodifiableLazyStringList.java.

◆ mergeFrom()

void com.google.protobuf.UnmodifiableLazyStringList.mergeFrom ( LazyStringList  other)
inline

◆ set() [1/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
indexindex of the element to replace
elementthe element to be stored at the specified position
Exceptions
UnsupportedOperationExceptionif the set operation is not supported by this list IndexOutOfBoundsException if the index is out of range ( )

Implements com.google.protobuf.LazyStringList.

Definition at line 102 of file UnmodifiableLazyStringList.java.

◆ set() [2/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
indexindex of the element to replace
elementthe element to be stored at the specified position
Exceptions
UnsupportedOperationExceptionif the set operation is not supported by this list IndexOutOfBoundsException if the index is out of range ( )

Implements com.google.protobuf.LazyStringList.

Definition at line 82 of file UnmodifiableLazyStringList.java.

◆ size()

int com.google.protobuf.UnmodifiableLazyStringList.size ( )
inline

Definition at line 67 of file UnmodifiableLazyStringList.java.

Member Data Documentation

◆ list

final LazyStringList com.google.protobuf.UnmodifiableLazyStringList.list
private

Definition at line 50 of file UnmodifiableLazyStringList.java.


The documentation for this class was generated from the following file:
com.google.protobuf.UnmodifiableLazyStringList.size
int size()
Definition: UnmodifiableLazyStringList.java:67
index
GLuint index
Definition: glcorearb.h:3055


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:08