Convertir HashMap a ArrayList
Solo quiero mover los valores del mapa de transición de hash en el arraylist CardholderDataRecords.
HashMap<String,ExceptionLifeCycleDataBean> transitionHash = new HashMap<String,ExceptionLifeCycleDataBean>();
ArrayList<ExceptionLifeCycleDataBean> cardholderDataRecords = new ArrayList<ExceptionLifeCycleDataBean>();
estoy haciendo como
cardholderDataRecords.add((ExceptionLifeCycleDataBean) transitionHash.values());
Esta tirando
java.lang.ClassCastException: java.util.HashMap$Values cannot be cast to com.reportss.bean.ExceptionLifeCycleDataBean