goldman.collection
Class Version
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Version
public Version()
increment
public int increment()
getCount
public int getCount()
restoreCount
public void restoreCount(int count)
check
public void check(int v)