private StereoEncoderFactory makeStereoEncoderFactory ( ) { if ( stereoEncoders . isEmpty ( ) ) { return StereoEncoderFactory . EMPTY ; } else if ( stereoEncoders . size ( ) == 1 ) { return stereoEncoders . get ( 0 ) ; } else { StereoEncoderFactory factory = new ConjugatedEncoderFactory ( stereoEncoders . get ( 0 ) , stereoEncoders . get ( 1 ) ) ; for ( int i = 2 ; i < stereoEncoders . size ( ) ; i ++ ) { factory = new ConjugatedEncoderFactory ( factory , stereoEncoders . get ( i ) ) ; } return factory ; } }
Combines the separate stereo encoder factories into a single factory .