T - type of elementspublic interface Sorted<T> extends Iterable<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Sorted.AssociatedWithInteger<T>
Interface for sorted list where elements are associated with integer values to sort them.
|
static interface |
Sorted.AssociatedWithLong<T>
Interface for sorted list where elements are associated with long values to sort them.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear this collection.
|
boolean |
isEmpty()
Return true if this collection is empty.
|
Iterator<T> |
orderedIterator()
Return an iterator that iterates on the correct order.
|
Iterator<T> |
reverseOrderIterator()
Return an iterator that iterates on the correct order.
|
int |
size()
Number of elements in this collection.
|
forEach, iterator, spliteratorCopyright © 2019. All rights reserved.