Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何比较两个MethodHandle实例?如果句柄指向相同的方法,我希望该函数返回 true。它看起来不像类覆盖equals()或hashcode(). 使用相等运算符 ( ==) 是否安全?
MethodHandle
equals()
hashcode()
==