Package com.google.protobuf
Class LazyStringArrayList.ByteStringListView
- All Implemented Interfaces:
Iterable<ByteString>,Collection<ByteString>,List<ByteString>,RandomAccess
- Enclosing class:
- LazyStringArrayList
private static class LazyStringArrayList.ByteStringListView
extends AbstractList<ByteString>
implements RandomAccess
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, ByteString s) get(int index) remove(int index) set(int index, ByteString s) intsize()Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, 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
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
list
-
-
Constructor Details
-
ByteStringListView
ByteStringListView(LazyStringArrayList list)
-
-
Method Details
-
get
- Specified by:
getin interfaceList<ByteString>- Specified by:
getin classAbstractList<ByteString>
-
size
public int size()- Specified by:
sizein interfaceCollection<ByteString>- Specified by:
sizein interfaceList<ByteString>- Specified by:
sizein classAbstractCollection<ByteString>
-
set
- Specified by:
setin interfaceList<ByteString>- Overrides:
setin classAbstractList<ByteString>
-
add
- Specified by:
addin interfaceList<ByteString>- Overrides:
addin classAbstractList<ByteString>
-
remove
- Specified by:
removein interfaceList<ByteString>- Overrides:
removein classAbstractList<ByteString>
-