私有方法八
/** * @author : lKF35745 * @version: 1.0 * <p>时间 : 2011-1-21</p> * <p>描述 : conferID是否是conferIdList上级的会议ID</p> * <p>Copyright 1988-2005, Huawei Tech. Co., Ltd.</p> * @param conferIdList 所有上级会议ID * @param conferID 父会议ID * @return */ private List<String> getParentConferId(List<String> conferIdList, String conferID) { if (logger.isDebugEnabled()) { logger.debug("begin to getUpperConferID and params is " + conferIdList.size() + "ConferenID is " + conferID); } if (null == conferIdList || conferIdList.size() < 1) { logger.warn("params conferIdList is null or size <1 "); return null; } List<String> ParentConferId = new ArrayList<String>(); for (int i = 0; i < conferIdList.size(); i++) { String upperConferID = conferIdList.get(i); if (!upperConferID.equals(conferID)) { ParentConferId.add(upperConferID); continue; } ParentConferId.add(upperConferID); break; } if (ParentConferId.size() < 1) { logger.warn("upperConferIDs size is zero"); return null; } if (logger.isDebugEnabled()) { logger.debug("end to getUpperConferID and result is " + ParentConferId.toString()); } return ParentConferId; }
?