T - 值类型public interface Linked<T extends Linked<T>>
Deque.| 限定符和类型 | 方法和说明 |
|---|---|
T |
getNext()
Retrieves the next element or null if either the element is
unlinked or the last element on the deque.
|
T |
getPrevious()
Retrieves the previous element or null if either the element is
unlinked or the first element on the deque.
|
void |
setNext(T next)
Sets the next element or null if there is no link.
|
void |
setPrevious(T prev)
Sets the previous element or null if there is no link.
|
T getPrevious()
void setPrevious(T prev)
prev - 前一个值T getNext()
void setNext(T next)
next - 下一个值Copyright © 2023. All rights reserved.