Answer the question
In order to leave comments, you need to log in
What is the correct way to name methods in Java?
Hello!
Please give your opinion on the following method naming in Java.
Let's say I have some DAO class:
public class DAO
{
public Collection<Event> getEvents() { . . . }
public Collection<Event> getEventsByTimerange(DateTime from, DateTime until) { . . . }
public Collection<Event> getEventsByPlace(String place) { . . . }
}
public class DAO
{
public Collection<Event> getEvents() { . . . }
public Collection<Event> getEvents(DateTime from, DateTime until) { . . . }
public Collection<Event> getEvents(String place) { . . . }
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question