Konvertieren von HashMap in ArrayList

Ich möchte nur die TransitionHash-Kartenwerte in die Array-Liste cardholderDataRecords verschieben.

HashMap<String,ExceptionLifeCycleDataBean> transitionHash = new HashMap<String,ExceptionLifeCycleDataBean>();

ArrayList<ExceptionLifeCycleDataBean> cardholderDataRecords = new ArrayList<ExceptionLifeCycleDataBean>();

Ich mache als

cardholderDataRecords.add((ExceptionLifeCycleDataBean) transitionHash.values());

Es wirft

java.lang.ClassCastException: java.util.HashMap$Values cannot be cast to com.reportss.bean.ExceptionLifeCycleDataBean

Antworten auf die Frage(2)

Ihre Antwort auf die Frage