T
- 值类型public interface Linked<T extends Linked<T>>
Deque
.Modifier and Type | Method and Description |
---|---|
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()
null
if either the element is
unlinked or the first element on the deque.void setPrevious(T prev)
null
if there is no link.prev
- 前一个值T getNext()
null
if either the element is
unlinked or the last element on the deque.void setNext(T next)
null
if there is no link.next
- 下一个值Copyright © 2025. All rights reserved.