Package com.google.protobuf
Class LazyStringArrayList.ByteStringListView
- All Implemented Interfaces:
Iterable<ByteString>
,Collection<ByteString>
,List<ByteString>
,RandomAccess
,SequencedCollection<ByteString>
- 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 TypeMethodDescriptionvoid
add
(int index, ByteString s) get
(int index) remove
(int index) set
(int index, ByteString s) int
size()
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, 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
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Field Details
-
list
-
-
Constructor Details
-
ByteStringListView
ByteStringListView(LazyStringArrayList list)
-
-
Method Details
-
get
- Specified by:
get
in interfaceList<ByteString>
- Specified by:
get
in classAbstractList<ByteString>
-
size
public int size()- Specified by:
size
in interfaceCollection<ByteString>
- Specified by:
size
in interfaceList<ByteString>
- Specified by:
size
in classAbstractCollection<ByteString>
-
set
- Specified by:
set
in interfaceList<ByteString>
- Overrides:
set
in classAbstractList<ByteString>
-
add
- Specified by:
add
in interfaceList<ByteString>
- Overrides:
add
in classAbstractList<ByteString>
-
remove
- Specified by:
remove
in interfaceList<ByteString>
- Overrides:
remove
in classAbstractList<ByteString>
-