public interface Sequence<E> extends List<E>, Listable<E>
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
List<E> |
asList() |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
E |
first() |
E |
get(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
boolean |
isNull() |
Iterator<E> |
iterator() |
E |
last() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(Object o)
移除第一个
|
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
<S extends Sequence<E>> |
subSequence(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
replaceAll, sort, spliteratorparallelStream, removeIf, streamE first()
E last()
boolean isNull()
isNull 在接口中 EmptyEvalutibleisNull 在接口中 Listable<E>boolean isEmpty()
boolean containsAll(Collection<?> c)
containsAll 在接口中 Collection<E>containsAll 在接口中 List<E>boolean addAll(Collection<? extends E> c)
boolean addAll(int index,
Collection<? extends E> c)
boolean removeAll(Collection<?> c)
boolean retainAll(Collection<?> c)
void clear()
boolean equals(Object o)
int hashCode()
int lastIndexOf(Object o)
lastIndexOf 在接口中 List<E>ListIterator<E> listIterator()
listIterator 在接口中 List<E>ListIterator<E> listIterator(int index)
listIterator 在接口中 List<E>Copyright © 2021. All rights reserved.