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 class
JavaConverters.ListView.Iterator<T,
C extends Seq<T>> private static class
JavaConverters.ListView.ListIterator<T,
C extends Seq<T>> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends T> collection) boolean
addAll
(Collection<? extends T> collection) void
clear()
boolean
boolean
containsAll
(Collection<?> collection) boolean
get
(int index) int
hashCode()
int
boolean
isEmpty()
iterator()
int
lastIndexOf
(Object obj) listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> collection) boolean
retainAll
(Collection<?> collection) private T
setDelegateAndGetPreviousElement
(int index, Supplier<C> delegate) int
size()
void
sort
(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, setDelegateAndCheckChanged
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
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:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
get
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in 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
-