@ SuppressWarnings ( "unchecked" ) private < T > List < T > getListValue ( Class < T > type , String propertyName , EDBObject object ) { List < T > temp = new ArrayList <> ( ) ; for ( int i = 0 ; ; i ++ ) { String property = getEntryNameForList ( propertyName , i ) ; Object obj = object . getObject ( property ) ; if ( obj == null ) { break ; } if ( OpenEngSBModel . class . isAssignableFrom ( type ) ) { obj = convertEDBObjectToUncheckedModel ( type , edbService . getObject ( object . getString ( property ) ) ) ; } temp . add ( ( T ) obj ) ; object . remove ( property ) ; } return temp ; }
Gets a list object out of an EDBObject .