CurrentDate 类的包名称

发布于 2024-08-15 01:19:32 字数 220 浏览 3 评论 0原文

我即将编写一个名为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

多彩岁月 2024-08-22 01:19:32

简单:销毁.时间

easy: destroy.time

温折酒 2024-08-22 01:19:32

我能想到的第一个命名空间(不知道此类的用途)是 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.

魄砕の薆 2024-08-22 01:19:32

com.destroytoday.generic 怎么样?

What about com.destroytoday.generic?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文