| addByPriority(data: T | any, priority?: number): void |
Creates a ListNode with the given data and priority and adds it to the list based on the node's priority. Higher priority nodes (those with greater values) will be at the front of the list while lower priority nodes will be at the end. The default value for priority is 0. |
| addFirst(data: T | any, priority?: number): void |
Creates a ListNode with the given data and priority and adds it to the beginning of the list. The default value for priority is 0. |
| addLast(data: T | any, priority?: number): void |
Creates a ListNode with the given data and priority and adds it to the end of the list. The default value for priority is 0. |
| addListByPriority(list: List<T>): void |
Adds all of the nodes from the given list to the current list based on priority. |
| copy(): List<T> |
Returns a copy of the list. Any data in the ListNodes will be a copy of the original data when possible. |
| linkFirst(list List<T>): void |
Links the given list to the beginning of the current list and updates the count, minPriority and maxPriority values. |
| linkLast(list List<T>): void |
Links the given list to the end of the current list and updates the count, minPriority, and maxPriority values. |