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:
java.io.Serializable
,java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.List<T>
- Enclosing class:
- JavaConverters
@GwtIncompatible("reflection is not supported") static class JavaConverters.ListView<T,C extends Seq<T>> extends JavaConverters.HasDelegate<C> implements java.util.List<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
JavaConverters.ListView.Iterator<T,C extends Seq<T>>
private static class
JavaConverters.ListView.ListIterator<T,C extends Seq<T>>
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, T element)
boolean
add(T element)
boolean
addAll(int index, java.util.Collection<? extends T> collection)
boolean
addAll(java.util.Collection<? extends T> collection)
void
clear()
boolean
contains(java.lang.Object obj)
boolean
containsAll(java.util.Collection<?> collection)
boolean
equals(java.lang.Object o)
T
get(int index)
int
hashCode()
int
indexOf(java.lang.Object obj)
boolean
isEmpty()
java.util.Iterator<T>
iterator()
int
lastIndexOf(java.lang.Object obj)
java.util.ListIterator<T>
listIterator()
java.util.ListIterator<T>
listIterator(int index)
T
remove(int index)
boolean
remove(java.lang.Object obj)
boolean
removeAll(java.util.Collection<?> collection)
boolean
retainAll(java.util.Collection<?> collection)
T
set(int index, T element)
private T
setDelegateAndGetPreviousElement(int index, java.util.function.Supplier<C> delegate)
int
size()
void
sort(java.util.Comparator<? super T> comparator)
java.util.List<T>
subList(int fromIndex, int toIndex)
java.lang.Object[]
toArray()
<U> U[]
toArray(U[] array)
java.lang.String
toString()
-
Methods inherited from class io.vavr.collection.JavaConverters.HasDelegate
ensureMutable, getDelegate, isMutable, setDelegate, setDelegateAndCheckChanged
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ListView
ListView(C delegate, boolean mutable)
-
-
Method Detail
-
add
public boolean add(T element)
-
addAll
public boolean addAll(java.util.Collection<? extends T> collection)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends T> collection)
- Specified by:
addAll
in interfacejava.util.List<T>
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object obj)
-
containsAll
public boolean containsAll(java.util.Collection<?> collection)
-
indexOf
public int indexOf(java.lang.Object obj)
- Specified by:
indexOf
in interfacejava.util.List<T>
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<T> iterator()
-
lastIndexOf
public int lastIndexOf(java.lang.Object obj)
- Specified by:
lastIndexOf
in interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<T>
-
remove
public boolean remove(java.lang.Object obj)
-
removeAll
public boolean removeAll(java.util.Collection<?> collection)
-
retainAll
public boolean retainAll(java.util.Collection<?> collection)
-
size
public int size()
-
sort
public void sort(java.util.Comparator<? super T> comparator)
- Specified by:
sort
in interfacejava.util.List<T>
-
subList
public java.util.List<T> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfacejava.util.List<T>
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <U> U[] toArray(U[] array)
-
equals
public boolean equals(java.lang.Object o)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-