Kam [ ] kams ( KamNode ... nodes ) { List < Kam > kams = new ArrayList < Kam > ( nodes . length ) ; for ( int i = 0 ; i < nodes . length ; i ++ ) { KamNode node = nodes [ i ] ; kams . add ( node . getKam ( ) ) ; } return kams . toArray ( new Kam [ 0 ] ) ; }
Returns the KAMs associated with each KAM node .