Comparing objects before and after some events in java in printed texts -


i need solution following problem. suppose have different fields in class. each of different type, may basic types such integers, may complex object type fields. need find way compare fields after exit , restart of app. limited dumping values file , comparing those. how can put on file , compare them can determine whether have changed or not. not need values. gethashcode() help?

if understand question, compare content in file after exit , before restart. 1 way use message digest. in calculating sha1 of contents , comparing before restart.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -