cse378
Class AbstractBlock

java.lang.Object
  extended by cse378.AbstractBlock
Direct Known Subclasses:
TaggedBlock

public abstract class AbstractBlock
extends java.lang.Object


Field Summary
protected  boolean dirty
           
protected  int id
           
protected  boolean valid
           
 
Constructor Summary
AbstractBlock(int id)
           
 
Method Summary
 int getId()
           
 int hashCode()
          hashcode computation
 boolean isDirty()
          check if this AbstractBlock has been modified
 boolean isValid()
           
 void setDirty(boolean b)
           
 void setValid(boolean b)
          Mark this entry as valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected final int id

dirty

protected boolean dirty

valid

protected boolean valid
Constructor Detail

AbstractBlock

public AbstractBlock(int id)
Method Detail

getId

public int getId()

setValid

public void setValid(boolean b)
Mark this entry as valid


isValid

public boolean isValid()

hashCode

public int hashCode()
hashcode computation

Overrides:
hashCode in class java.lang.Object

isDirty

public boolean isDirty()
check if this AbstractBlock has been modified

Returns:
true if dirty is set to true

setDirty

public void setDirty(boolean b)