executes with the given args all the cases matching the given match plus the defaut one if it has been defined . concode_field_sep Result<T> result concode_elem_sep Matcher<?> matcher concode_elem_sep List<Case<T>> cases concode_elem_sep Result<T> defaultResult concode_elem_sep T value concode_elem_sep AbstractClosure closure concode_field_sep Switcher<T> addCase concode_elem_sep Switcher<T> addCase concode_elem_sep Switcher<T> addCase concode_elem_sep Switcher<T> addCase concode_elem_sep Switcher<T> setDefault concode_elem_sep Switcher<T> setDefault concode_elem_sep boolean matches concode_elem_sep T exec concode_elem_sep T exec concode_elem_sep T exec concode_elem_sep T exec concode_elem_sep T exec
List < T > function ( Object arg0 , Object ... arg1 ) { List < T > loc0 = new ArrayList < T > ( ) ; for ( Case < T > loc1 : cases ) { if ( loc1 . matches ( arg0 ) ) loc0 . add ( loc1 . exec ( arg1 ) ) ; } if ( defaultResult != null ) loc0 . add ( defaultResult . exec ( arg1 ) ) ; return loc0 ; }