2022-04-01 21:02:39 +00:00
|
|
|
|
using C_.Datastructures.Generic;
|
|
|
|
|
|
|
|
|
|
namespace C_.Datastructures.Queue
|
2022-03-31 20:36:43 +00:00
|
|
|
|
{
|
2022-04-02 20:22:20 +00:00
|
|
|
|
internal class QueueNode<T> : UndirectedNode<T, QueueNode<T>>
|
2022-03-31 20:36:43 +00:00
|
|
|
|
{
|
|
|
|
|
public static QueueNode<T> Create(T? value, QueueNode<T>? next)
|
|
|
|
|
{
|
|
|
|
|
return new QueueNode<T>
|
|
|
|
|
{
|
|
|
|
|
Value = value,
|
|
|
|
|
Next = next
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|