我只想将 transitionHash 映射值移动到 cardholderDataRecords 数组列表中。
HashMap<String,ExceptionLifeCycleDataBean> transitionHash = new HashMap<String,ExceptionLifeCycleDataBean>();
ArrayList<ExceptionLifeCycleDataBean> cardholderDataRecords = new ArrayList<ExceptionLifeCycleDataBean>();
我正在做
cardholderDataRecords.add((ExceptionLifeCycleDataBean) transitionHash.values());
它在扔
java.lang.ClassCastException: java.util.HashMap$Values cannot be cast to com.reportss.bean.ExceptionLifeCycleDataBean