Java – enum and class loader

Sometimes you may not even know that the environment in which you insert code has multiple class loaders In this case, can I still expect the "= =" operation to work on enumerated values?

Solution

"= =" doesn't work, but you want to use it anyway equals().

You may be interested in Apache commons Lang class: link text

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>