Package com.google.protobuf
Class RepeatedFieldBuilderV3.BuilderExternalList<MType extends AbstractMessage,BType extends AbstractMessage.Builder,IType extends MessageOrBuilder>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<BType>
com.google.protobuf.RepeatedFieldBuilderV3.BuilderExternalList<MType,BType,IType>
- Type Parameters:
MType- the type of message for the fieldBType- the type of builder for the fieldIType- the common interface for the message and the builder
- All Implemented Interfaces:
Iterable<BType>,Collection<BType>,List<BType>,RandomAccess
- Enclosing class:
- RepeatedFieldBuilderV3<MType extends AbstractMessage,
BType extends AbstractMessage.Builder, IType extends MessageOrBuilder>
private static class RepeatedFieldBuilderV3.BuilderExternalList<MType extends AbstractMessage,BType extends AbstractMessage.Builder,IType extends MessageOrBuilder>
extends AbstractList<BType>
implements List<BType>, RandomAccess
Provides a live view of the builder as a list of builders.
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
-
Field Details
-
builder
RepeatedFieldBuilderV3<MType extends AbstractMessage,BType extends AbstractMessage.Builder, builderIType extends MessageOrBuilder>
-
-
Constructor Details
-
BuilderExternalList
BuilderExternalList(RepeatedFieldBuilderV3<MType, BType, IType> builder)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<MType extends AbstractMessage>- Specified by:
sizein interfaceList<MType extends AbstractMessage>- Specified by:
sizein classAbstractCollection<BType extends AbstractMessage.Builder>
-
get
- Specified by:
getin interfaceList<MType extends AbstractMessage>- Specified by:
getin classAbstractList<BType extends AbstractMessage.Builder>
-
incrementModCount
void incrementModCount()
-