component/src/main/java/org/wso2/extension/siddhi/execution/extrema/util/DoublyLinkedList.java
public void remove(ListNode<T> node) {
        if (node == head) {
            head = node.getNextNode();
        } else if (node.getPreviousNode() != null) {
            node.getPreviousNode().setNextNode(node.getNextNode());
        }
        if (node == tail) {
            tail = node.getPreviousNode();
        } else if (node.getNextNode() != null) {
            node.getNextNode().setPreviousNode(node.getPreviousNode());
        }
        size--;
    }
/**
     * Remove the specified node from the list
     *
     * @param node The node to be removed
     */
Remove the specified node from the list
@param node The node to be removed
Remove the specified node from the list @param node The node to be removed
public void remove(ListNode<T> node) {
        if (node == head) {
            head = node.getNextNode();
        } else if (node.getPreviousNode() != null) {
            node.getPreviousNode().setNextNode(node.getNextNode());
        }
        if (node == tail) {
            tail = node.getPreviousNode();
        } else if (node.getNextNode() != null) {
            node.getNextNode().setPreviousNode(node.getPreviousNode());
        }
        size--;
    }
public void remove ( ListNode < T > node ) { if ( node == head ) { head = node . getNextNode ( ) ; } else if ( node . getPreviousNode ( ) != null ) { node . getPreviousNode ( ) . setNextNode ( node . getNextNode ( ) ) ; } if ( node == tail ) { tail = node . getPreviousNode ( ) ; } else if ( node . getNextNode ( ) != null ) { node . getNextNode ( ) . setPreviousNode ( node . getPreviousNode ( ) ) ; } size -- ; }
Remove the specified node from the list
 @param node The node to be removed
Remove the specified node from the list @param node The node to be removed