public static List < IterableResult < ? > > getIterableResults ( Result r ) { if ( r instanceof IterableResult < ? > ) { List < IterableResult < ? > > irs = new ArrayList <> ( 1 ) ; irs . add ( ( IterableResult < ? > ) r ) ; return irs ; } if ( r instanceof HierarchicalResult ) { return filterResults ( ( ( HierarchicalResult ) r ) . getHierarchy ( ) , r , IterableResult . class ) ; } return Collections . emptyList ( ) ; }
Return all Iterable results