2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
6 package TransactionalIO.core;
12 public class INode implements Comparable{
14 private String filepath;
18 public INode(long number) {
22 public INode(long number, String filepath) {
24 this.filepath = filepath;
27 public String getFilepath() {
31 public void setFilepath(String filepath) {
32 this.filepath = filepath;
37 public long getNumber() {
41 public void setNumber(long number) {
45 public int compareTo(Object arg0) {
46 INode other = (INode) arg0;
47 if (this.getNumber() < other.getNumber())
49 else if (this.getNumber() > other.getNumber())
52 System.out.println("Logical Eroor Two Inodes cannot have the same number");