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 classJavaConverters.ListView.Iterator<T,C extends Seq<T>>private static classJavaConverters.ListView.ListIterator<T,C extends Seq<T>>
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T element)booleanadd(T element)booleanaddAll(int index, java.util.Collection<? extends T> collection)booleanaddAll(java.util.Collection<? extends T> collection)voidclear()booleancontains(java.lang.Object obj)booleancontainsAll(java.util.Collection<?> collection)booleanequals(java.lang.Object o)Tget(int index)inthashCode()intindexOf(java.lang.Object obj)booleanisEmpty()java.util.Iterator<T>iterator()intlastIndexOf(java.lang.Object obj)java.util.ListIterator<T>listIterator()java.util.ListIterator<T>listIterator(int index)Tremove(int index)booleanremove(java.lang.Object obj)booleanremoveAll(java.util.Collection<?> collection)booleanretainAll(java.util.Collection<?> collection)Tset(int index, T element)private TsetDelegateAndGetPreviousElement(int index, java.util.function.Supplier<C> delegate)intsize()voidsort(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.StringtoString()-
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:
addAllin 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:
indexOfin 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:
lastIndexOfin interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator(int index)
- Specified by:
listIteratorin 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:
sortin interfacejava.util.List<T>
-
subList
public java.util.List<T> subList(int fromIndex, int toIndex)
- Specified by:
subListin 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:
toStringin classjava.lang.Object
-
-