티스토리 뷰

공부

[java] enums.values() static list

승가비 2023. 10. 13. 04:17
728x90

https://stackoverflow.com/questions/19303511/enum-values-method-efficiency

 

Enum values() method efficiency

Is there any inefficiency in calling the values() function of a specific enum class multiple times? I have seen instances of existing code where the results of values() are cached for reuse. Is t...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[prometheus] node_exporter  (0) 2023.10.13
[gradle] spring-boot-kotlin  (0) 2023.10.13
[sh] kill -9 by port  (0) 2023.10.13
[sh] args  (0) 2023.10.12
[sh] hostname -I (IP 확인)  (0) 2023.10.12
댓글