Package name for a loop class
-
20-09-2019 - |
Question
I wrote a class that performs an asynchronous loop. It needs a package name. I already have a util package, but feel resistant to put half of my classes in that package. If it really belongs there, I'll put it there, but I'd feel much better if I can find a more appropriate/specific package. What do you think?
Solution 3
I ended up going with "timer" as the package name after finding many similarities with the Timer class that sits in the timer package.
OTHER TIPS
A package is normally created for more than one class. If your class uses some helper classes, then it should go in a separate package; differently, you should use the generic package you already have.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow