Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
// Individual entries in the linked listpublic class LinkedListBlock {private long startAddress; // Start address of free blockprivate long endAddress; // End address of free blockprivate long size; // Total size of free blockprivate LinkedListBlock nextBlock; // Pointer to next block in listprivate LinkedListBlock prevBlock; // Pointer to previous block in list// Constructorpublic LinkedListBlock(long start, long end, long size){this.startAddress = start;this.endAddress = end;this.size = size;setNextBlock(null);setPrevBlock(null);}public long getStartAddress() {return startAddress;}public long getEndAddress() {return endAddress;}public long getSize() {return size;}public LinkedListBlock getNextBlock() {return nextBlock;}public void setNextBlock(LinkedListBlock nextBlock) {this.nextBlock = nextBlock;}public LinkedListBlock getPrevBlock() {return prevBlock;}public void setPrevBlock(LinkedListBlock prevBlock) {this.prevBlock = prevBlock;}}