//使用Offer Id找出特定事件索引的最佳方法是什么?
使用核心 java 还是使用第三方库(如 Guava/Commons Collection)?
public class Event{
private String title;
//other attributes
private ArrayList<Offers> lOffers;
}
public class Offers{
private Sring Id;
private String offerName;
}
//Code
List<PayPerViewTitles> PayPerViewTitleList = someMethod();
/*
offerId -> Offers Object id property
**/
private int findEventPositionByOfferId(List<Event> eventList, String offerId){
// how to implement this method to find the Main Event using the
offer->id
}
此对象用于映射服务器 JSON 响应,