package tsp.hashmap;

public class Queue<E> {

    private E value;

    private boolean isEmpty;

    private Queue<E> next;

    private Queue<E> prev;

    public Queue(E value) {
        this.value = value;
        this.next = this;
        this.prev = this;
        this.isEmpty = false;
    }

    public Queue() {
        this.value = null;
        this.next = this;
        this.prev = this;
        this.isEmpty = true;
    }
}