How to generate a checksum for an java object

后端 未结 10 791
生来不讨喜
生来不讨喜 2020-12-13 01:04

I\'m looking for a solution to generate a checksum for any type of Java object, which remains the same for every execution of an application that produces the same object.

10条回答
  •  独厮守ぢ
    2020-12-13 01:34

    I think you should look at serialization. Serialization mechanism needs to solve similar problem, so you can look how it's implemented.

    But if you describe the problem you're trying to solve you'll probably get more precise solution.

提交回复
热议问题