- AbstractList, AbstractSequentialList, ArrayList, AttributeList, CopyOnWriteArrayList, LinkedList, RoleList, RoleUnresolvedList, Stack, Vector
Class ArrayList
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable
, Collection , List , RandomAccess
- Direct Known Subclasses:
- AttributeList, RoleList, RoleUnresolvedList
Collections.sort(aList);
aList.sort(null);
A
null
value indicates that the elements'
natural ordering should be usedaList.sort((e1,e2) -> e2 - e1); //DESC
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()
|
Object |
clone()
|
boolean |
contains(Object o)
|
void |
ensureCapacity(int minCapacity)
|
void |
forEach(Consumer<?
super E> action)
|
E |
get(int index)
|
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
Iterator<E> |
iterator()
|
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 |
removeIf(Predicate<?
super E> filter)
|
protected void |
removeRange(int fromIndex,
int toIndex)
|
void |
replaceAll(UnaryOperator<E> operator)
|
boolean |
retainAll(Collection<?> c)
|
E |
set(int index,
E element)
|
int |
size()
|
void |
sort(Comparator<?
super E> c)
|
Spliterator<E> |
spliterator()
|
List<E> |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
<T> T[] |
toArray(T[] a)
|
void |
trimToSize()
|
No comments:
Post a Comment