tachyon
Class Inode

java.lang.Object
  extended by tachyon.Inode
All Implemented Interfaces:
Comparable<Inode>
Direct Known Subclasses:
InodeFile, InodeFolder

public abstract class Inode
extends Object
implements Comparable<Inode>

Inode is an abstract class, with information shared by all types of Inodes.


Field Summary
protected  InodeType TYPE
           
 
Constructor Summary
protected Inode(String name, int id, int parentId, InodeType type)
           
 
Method Summary
 int compareTo(Inode o)
           
 boolean equals(Object o)
           
 long getCreationTimeMs()
           
 int getId()
           
 InodeType getInodeType()
           
 String getName()
           
 int getParentId()
           
 int hashCode()
           
 boolean isDirectory()
           
 boolean isFile()
           
 void reverseId()
           
 void setName(String name)
           
 void setParentId(int parentId)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

protected final InodeType TYPE
Constructor Detail

Inode

protected Inode(String name,
                int id,
                int parentId,
                InodeType type)
Method Detail

compareTo

public int compareTo(Inode o)
Specified by:
compareTo in interface Comparable<Inode>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isDirectory

public boolean isDirectory()

isFile

public boolean isFile()

getInodeType

public InodeType getInodeType()

getCreationTimeMs

public long getCreationTimeMs()

getId

public int getId()

reverseId

public void reverseId()

getName

public String getName()

setName

public void setName(String name)

getParentId

public int getParentId()

setParentId

public void setParentId(int parentId)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.