MCPcopy Create free account
hub / github.com/e2wugui/zeze / typeId

Method typeId

ZezeJava/ZezeJava/src/main/java/Zeze/Transaction/Bean.java:162–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 // Gen的时候会全局判断是否出现重复冲突。如果出现冲突,则手动指定一个。
161 // 这个方法在Gen的时候总是覆盖(override),提供默认实现是为了方便内部Bean的实现。
162 @Override
163 public long typeId() {
164 return hash64(getClass().getName());
165 }
166
167 // 使用自己的hash算法,因为 TypeId 会持久化,不能因为算法改变导致值变化。
168 // XXX: 这个算法定好之后,就不能变了。

Callers

nothing calls this directly

Calls 2

hash64Method · 0.95
getNameMethod · 0.65

Tested by

no test coverage detected