I am developing an API for a service that deals with Job objects. I need to get assignments based on status. So, I ended up calling my methods the following:
List<Job> getJobsByStatus(JobStatus status);
And later I realized that I also need to be able to receive tasks that do not belong to a certain status. Say I want to get everything but closed tasks.
I could not come up with a suitable and intuitive name for this method.
I thought about the bottom, but did not find them correctly.
List<Job> getJobsAllButStatus(JobStatus status); List<Job> getJobsNotStatus(JobStatus status);
I canโt use a specific status, such as private and baptize my getAllButClosedJobs method, because my method will be general, able to handle any status.
PS: I hope this question relates to SO, although this is not technically programming. Otherwise, please feel free to transfer it to a suitable site.
adarshr
source share