goldman.collection
Class Version

java.lang.Object
  extended by goldman.collection.Version

public class Version
extends Object

The Version class is used to manage a modification count for each class that is used to determine when a concurrent modification has occurred. Each data structure has one instance of the Version class. The locator implementation has the option of updating its own copy of the modification count when the locator calls a mutating operation on the data structure.


Constructor Summary
Version()
           
 
Method Summary
 void check(int v)
           
 int getCount()
           
 int increment()
           
 void restoreCount(int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Version

public Version()
Method Detail

increment

public int increment()

getCount

public int getCount()

restoreCount

public void restoreCount(int count)

check

public void check(int v)