Package io.vavr.collection
Class JavaConverters.ListView<T,C extends Seq<T>>
java.lang.Object
io.vavr.collection.JavaConverters.HasDelegate<C>
io.vavr.collection.JavaConverters.ListView<T,C>
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>,List<T>,SequencedCollection<T>
- Enclosing class:
JavaConverters
@GwtIncompatible("reflection is not supported")
static class JavaConverters.ListView<T,C extends Seq<T>>
extends JavaConverters.HasDelegate<C>
implements List<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classJavaConverters.ListView.Iterator<T,C extends Seq<T>> private static classJavaConverters.ListView.ListIterator<T,C extends Seq<T>> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> collection) booleanaddAll(Collection<? extends T> collection) voidclear()booleanbooleancontainsAll(Collection<?> collection) booleanget(int index) inthashCode()intbooleanisEmpty()iterator()intlastIndexOf(Object obj) listIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> collection) booleanretainAll(Collection<?> collection) private TsetDelegateAndGetPreviousElement(int index, Supplier<C> delegate) intsize()voidsort(Comparator<? super T> comparator) subList(int fromIndex, int toIndex) Object[]toArray()<U> U[]toArray(U[] array) toString()Methods inherited from class io.vavr.collection.JavaConverters.HasDelegate
ensureMutable, getDelegate, isMutable, setDelegate, setDelegateAndCheckChangedMethods 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
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ListView
ListView(C delegate, boolean mutable)
-
-
Method Details
-
add
-
add
-
addAll
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
get
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
size
public int size() -
sort
-
subList
-
toArray
-
toArray
public <U> U[] toArray(U[] array) -
equals
-
hashCode
public int hashCode() -
toString
-
setDelegateAndGetPreviousElement
-