Lets say I have list of orders such as
class Order {
String orderId;
Date orderTime;
}What is the best data structure to prepopulate so that I can return list of orders using startTime and endTime in the below method efficiently.
public Collection<Order> findOrders(Date startTime, Date endTime) {
}