1 11 12 package org.jivesoftware.util; 13 14 32 public class LinkedListNode { 33 34 public LinkedListNode previous; 35 public LinkedListNode next; 36 public Object object; 37 38 49 public long timestamp; 50 51 58 public LinkedListNode(Object object, LinkedListNode next, 59 LinkedListNode previous) { 60 this.object = object; 61 this.next = next; 62 this.previous = previous; 63 } 64 65 68 public void remove() { 69 previous.next = next; 70 next.previous = previous; 71 } 72 73 79 public String toString() { 80 return object == null ? "null" : object.toString(); 81 } 82 } 83 | Popular Tags |