public class FluentList<E> extends Object implements List<E>, RandomAccess, Cloneable, Serializable
| Constructor and Description |
|---|
FluentList() |
FluentList(List<E> list) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
E |
first() |
FluentList<E> |
first(E e) |
E |
get(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
FluentList<E> |
ins(Collection<? extends E> c) |
FluentList<E> |
ins(E e) |
FluentList<E> |
ins(int index,
Collection<? extends E> c) |
FluentList<E> |
ins(int index,
E e) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
E |
last() |
FluentList<E> |
last(E e) |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
FluentList<E> |
removeFirst() |
FluentList<E> |
removeLast() |
void |
replaceAll(UnaryOperator<E> operator) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
void |
sort(Comparator<? super E> c) |
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitspliteratorparallelStream, removeIf, streampublic FluentList<E> first(E e)
public FluentList<E> last(E e)
public FluentList<E> ins(E e)
public FluentList<E> ins(int index, E e)
public FluentList<E> ins(int index, Collection<? extends E> c)
public FluentList<E> ins(Collection<? extends E> c)
public E first()
NoSuchElementException - if this list is emptypublic E last()
NoSuchElementException - if this list is emptypublic FluentList<E> removeFirst()
NoSuchElementException - if this list is emptypublic FluentList<E> removeLast()
NoSuchElementException - if this list is emptypublic boolean add(E e)
public boolean addAll(Collection<? extends E> c)
public boolean addAll(int index,
Collection<? extends E> c)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface List<E>public boolean equals(Object o)
public int hashCode()
public boolean isEmpty()
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public void replaceAll(UnaryOperator<E> operator)
replaceAll in interface List<E>public boolean retainAll(Collection<?> c)
public int size()
public void sort(Comparator<? super E> c)
public Object[] toArray()
Copyright © 2021. All rights reserved.