How can I create a static final instance of a dumb “struct” in Java?

后端 未结 0 1712
时光说笑
时光说笑 2021-01-05 06:56

I have a struct that doesn\'t enforce any invariants, (i.e. it exists to carry data for other classes), so its fields are public and it has no (declared) constructor:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题