LinkedListNode#
- class LinkedListNode(value)#
Bases:
Generic
[T
,LLN
]- __init__(value)#
Methods
__init__
(value)add_predecessor
(value)- rtype:
None
add_successor
(value)- rtype:
None
change_predecessor
(new_predecessor)- rtype:
None
change_successor
(new_successor)- rtype:
None
new_node
(value)- rtype:
TypeVar
(LLN
, bound=LinkedListNode
)
- rtype:
None
- rtype:
None
Attributes
- rtype:
Optional
[TypeVar
(LLN
, bound=LinkedListNode
)]
- rtype:
Optional
[TypeVar
(LLN
, bound=LinkedListNode
)]
- rtype:
TypeVar
(T
)
- add_predecessor(value)#
- Return type:
None
- add_successor(value)#
- Return type:
None
- change_predecessor(new_predecessor)#
- Return type:
None
- change_successor(new_successor)#
- Return type:
None
- classmethod new_node(value)#
- Return type:
TypeVar
(LLN
, bound=LinkedListNode
)
- property predecessor: Optional[LLN]#
- Return type:
Optional
[TypeVar
(LLN
, bound=LinkedListNode
)]
- remove_predecessor()#
- Return type:
None
- remove_successor()#
- Return type:
None
- property successor: Optional[LLN]#
- Return type:
Optional
[TypeVar
(LLN
, bound=LinkedListNode
)]
- property value: T#
- Return type:
TypeVar
(T
)