CurrentDate 类的包名称
我即将编写一个名为 CurrentDate 的类,并且需要一个可靠的包名称。明显的答案是 com.destroytoday.date 或 com.destroytoday.time,但我不确定将来是否会有更多与日期相关的类来证明整个包的合理性。我可以使用任何名称来允许将来使用与日期无关的课程吗?
更具体地说,它由像 toString() 这样的静态函数组成,这些函数会自动更新 Date 实例并返回当前信息。
I'm about to write a class called CurrentDate and need a solid package name. The obvious answers are com.destroytoday.date or com.destroytoday.time, but I'm not sure if I'll have more date-related classes in the future to justify an entire package. Are there any names I can use that would allow non-date-related classes in the future?
To be more specific about the class, it consists of static functions like toString() that auto-update a Date instance and return the current info.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
简单:销毁.时间
easy: destroy.time
我能想到的第一个命名空间(不知道此类的用途)是 com.destroytoday.utility、com.dewstroytoday.utilities、com.destroytoday.support、com.destroytoday.helpers。
The first namespaces I can think of, without to know the purpose of such classes are com.destroytoday.utility, com.dewstroytoday.utilities, com.destroytoday.support, com.destroytoday.helpers.
com.destroytoday.generic 怎么样?
What about com.destroytoday.generic?