refactored org to uk
[vamsas.git] / src / uk / ac / vamsas / client / Vobjhash.java
1 package uk.ac.vamsas.client;\r
2 \r
3 /**\r
4  * Holds information about Vobj instances that is held over between different writes to the document.\r
5  * @author JimP\r
6  *\r
7  */\r
8 public class Vobjhash {\r
9   int hashvalue;\r
10   /**\r
11    * creates a record of the hash value for a vamsas document object\r
12    * @param tobemarshalled\r
13    */\r
14   public Vobjhash(Vobject tobemarshalled) {\r
15     hashvalue = tobemarshalled.get__last_hash();\r
16   }\r
17   /**\r
18    * compares the old hash value with the unmarshalled object's most recently computed hash value.\r
19    * @param unmarshalled\r
20    * @return true if the hash values differ\r
21    */\r
22   public boolean isUpdated(Vobject unmarshalled) {\r
23     return hashvalue==unmarshalled.get__last_hash();\r
24   }\r
25 }\r