Package com.google.protobuf
Class RepeatedFieldBuilder.BuilderExternalList<MType extends GeneratedMessage,BType extends GeneratedMessage.Builder,IType extends MessageOrBuilder>
java.lang.Object
java.util.AbstractCollection<BType>
java.util.AbstractList<BType>
com.google.protobuf.RepeatedFieldBuilder.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>
,SequencedCollection<BType>
- Enclosing class:
RepeatedFieldBuilder<MType extends GeneratedMessage,
BType extends GeneratedMessage.Builder, IType extends MessageOrBuilder>
private static class RepeatedFieldBuilder.BuilderExternalList<MType extends GeneratedMessage,BType extends GeneratedMessage.Builder,IType extends MessageOrBuilder>
extends AbstractList<BType>
implements List<BType>
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, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, sort, spliterator, subList, toArray, toArray
-
Field Details
-
builder
RepeatedFieldBuilder<MType extends GeneratedMessage,BType extends GeneratedMessage.Builder, builderIType extends MessageOrBuilder>
-
-
Constructor Details
-
BuilderExternalList
BuilderExternalList(RepeatedFieldBuilder<MType, BType, IType> builder)
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceCollection<MType extends GeneratedMessage>
- Specified by:
size
in interfaceList<MType extends GeneratedMessage>
- Specified by:
size
in classAbstractCollection<BType extends GeneratedMessage.Builder>
-
get
- Specified by:
get
in interfaceList<MType extends GeneratedMessage>
- Specified by:
get
in classAbstractList<BType extends GeneratedMessage.Builder>
-
incrementModCount
void incrementModCount()
-