public List < Item > intercept ( List < Model > models ) { List < Item > items = new ArrayList <> ( models . size ( ) ) ; Item item ; for ( Model model : models ) { item = intercept ( model ) ; if ( item == null ) continue ; items . add ( item ) ; } return items ; }
Generates a List of Item based on it s List of Model using the interceptor