public TYPE_1 METHOD_1 ( int position ) { switch ( position ) { case 0 : return TYPE_2 . METHOD_2 ( ) ; case 1 : return TYPE_3 . METHOD_3 ( position ) ; default : return null ; } }
public TYPE_1 METHOD_1 ( int position ) { switch ( position ) { case 0 : return TYPE_2 . METHOD_2 ( ) ; case 1 : return TYPE_3 . METHOD_3 ( position ) ; } return null ; }