class DeleteListNode {

  public void delete(ListNode node) {
    validateInputData(node);

    if (node.getNext() == null) {
      return;
    }
    ListNode next = node.getNext();
    node.setData(next.getData());
    node.setNext(next.getNext());
  }

}