01: // LRUNode.java
02: // $Id: LRUNode.java,v 1.4 2003/02/14 16:14:56 ylafon Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1996.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.util;
07:
08: public class LRUNode implements LRUAble {
09: protected LRUAble prev;
10: protected LRUAble next;
11:
12: public LRUNode() {
13: this .prev = null;
14: this .next = null;
15: }
16:
17: public LRUNode(LRUAble prev, LRUAble next) {
18: this .prev = prev;
19: this .next = next;
20: }
21:
22: public LRUAble getNext() {
23: return next;
24: }
25:
26: public LRUAble getPrev() {
27:
28: return prev;
29: }
30:
31: public void setPrev(LRUAble prev) {
32: this .prev = prev;
33: }
34:
35: public void setNext(LRUAble next) {
36: this.next = next;
37: }
38: }
|