public ims.scheduling.vo.beans.PatientAppointmentsSearchCriterisVoBean[] getBeanCollectionArray() { ims.scheduling.vo.beans.PatientAppointmentsSearchCriterisVoBean[] result = new ims.scheduling.vo.beans.PatientAppointmentsSearchCriterisVoBean[col.size()]; for (int i = 0; i < col.size(); i++) { PatientAppointmentsSearchCriterisVo vo = ((PatientAppointmentsSearchCriterisVo) col.get(i)); result[i] = (ims.scheduling.vo.beans.PatientAppointmentsSearchCriterisVoBean) vo.getBean(); } return result; }
public int compare(Object obj1, Object obj2) { PatientAppointmentsSearchCriterisVo voObj1 = (PatientAppointmentsSearchCriterisVo) obj1; PatientAppointmentsSearchCriterisVo voObj2 = (PatientAppointmentsSearchCriterisVo) obj2; return direction * (voObj1.compareTo(voObj2, this.caseInsensitive)); }