同步操作将从 Gitee Community/bullshit-codes 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
public class LinkedListNode<E> {public LinkedListNode<E> previous;public LinkedListNode<E> next;public E object;/*** This class is further customized for the CoolServlets cache system. It* maintains a timestamp of when a Cacheable object was first added to* cache. Timestamps are stored as long values and represent the number of* milleseconds passed since January 1, 1970 00:00:00.000 GMT.* <p>* The creation timestamp is used in the case that the cache has a maximum* lifetime set. In that case, when [current time] - [creation time] >* [max lifetime], the object will be deleted from cache.* </p>*/public long timestamp;/*** Constructs an self-referencing node. This node acts as a start/end* sentinel when traversing nodes in a LinkedList.*/public LinkedListNode() {previous = next = this;}/*** Constructs a new linked list node.** @param object the Object that the node represents.* @param next a reference to the next LinkedListNode in the list.* @param previous a reference to the previous LinkedListNode in the list.*/public LinkedListNode(E object, LinkedListNode<E> next, LinkedListNode<E> previous) {if (next != null && previous != null) {this.insert(next, previous);}this.object = object;}/*** Removes this node from the linked list that it was a part of.** @return This node; next and previous references dropped*/public LinkedListNode<E> remove() {previous.next = next;next.previous = previous;previous = next = null;return this;}/*** Inserts this node into the linked list that it will be a part of.** @return This node, updated to reflect previous/next changes*/public LinkedListNode<E> insert(LinkedListNode<E> next, LinkedListNode<E> previous) {this.next = next;this.previous = previous;this.previous.next = this.next.previous = this;return this;}/*** Returns a String representation of the linked list node by calling the* toString method of the node's object.** @return a String representation of the LinkedListNode.*/@Overridepublic String toString() {return object == null ? "null" : object.toString();}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。