private static class LazyStringArrayList.ByteStringListView extends java.util.AbstractList<ByteString> implements java.util.RandomAccess
Modifier and Type | Field and Description |
---|---|
private LazyStringArrayList |
list |
Constructor and Description |
---|
ByteStringListView(LazyStringArrayList list) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
ByteString s) |
ByteString |
get(int index) |
ByteString |
remove(int index) |
ByteString |
set(int index,
ByteString s) |
int |
size() |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private final LazyStringArrayList list
ByteStringListView(LazyStringArrayList list)
public ByteString get(int index)
get
in interface java.util.List<ByteString>
get
in class java.util.AbstractList<ByteString>
public int size()
size
in interface java.util.Collection<ByteString>
size
in interface java.util.List<ByteString>
size
in class java.util.AbstractCollection<ByteString>
public ByteString set(int index, ByteString s)
set
in interface java.util.List<ByteString>
set
in class java.util.AbstractList<ByteString>
public void add(int index, ByteString s)
add
in interface java.util.List<ByteString>
add
in class java.util.AbstractList<ByteString>
public ByteString remove(int index)
remove
in interface java.util.List<ByteString>
remove
in class java.util.AbstractList<ByteString>