当前位置:网站首页>Enumerated valueof() method stepping on the pit
Enumerated valueof() method stepping on the pit
2022-07-27 02:03:00 【Gentleman jiejie】
It was used valueOf() Method matching enumeration , Sometimes when you create a new enumeration , Just report that enumeration cannot be found , The root cause lies in the wrong understanding of this method , The parameters of this method do not refer to the values of some fields defined in the enumeration , It is simply enumeration , as follows :
What matches is the value of the red box , Not inside "A", The two display values are sometimes defined the same , So it will cause misunderstanding , Cause misuse .
边栏推荐
猜你喜欢

LAMP.

2022年T2I文本生成图像 中文期刊论文速览-1(ECAGAN:基于通道注意力机制的文本生成图像方法+CAE-GAN:基于Transformer交叉注意力的文本生成图像技术)

Share 29 chrome plug-ins, and there is always one for you

MySQL备份恢复

Atcoder D - increment of coins (probability DP)

Shell script - automatically deploy DNS services

RT-thread学习

使用ECS和OSS搭建个人网盘

(codeforce 807div2)C. Mark and his unfinished essay (thinking)

ERROR! MySQL is not running, but PID file exists
随机推荐
RT thread learning
Ubuntu12.10 installing mysql5.5 (I)
SSH and NFS services
Installation and basic operation of docker
Notes during in-depth learning (to be improved)
Desktop solution summary
科学计算库 —— Numpy
How can smart people leave without offending others?
MySQL view
Timestamp conversion Greenwich mean time
MVCC及其原理详解
Merge sort (recursive and non recursive writing)
Run NPM run dev to run 'NPM audit fix' to fix them, or 'NPM audit' for details
21dns domain name resolution
Ubuntu12.10安装Mysql5.5(三)
项目 | 实现一个高并发内存池
Shell (9) function
Harmonyos image processing application development live broadcast notes
(codeforce 807div2)C. Mark and his unfinished essay (thinking)
负载均衡的运用