Package util

Class OrderPreservingList<T extends Comparable<T>>

All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess

public class OrderPreservingList<T extends Comparable<T>> extends ArrayList<T>
A LinkedList override to create an order-preserving list to improve speed in a special use case:
You want to remove and add object from/to a list and keep the elements in the list sorted without having to re-sort each time.
Since:
18.06.2021
Author:
Juyas
See Also: