public static Strand detectStrand ( List < Location > subLocations ) { Strand strand = subLocations . get ( 0 ) . getStrand ( ) ; for ( Location sub : subLocations ) { if ( strand != sub . getStrand ( ) ) { strand = Strand . UNDEFINED ; break ; } } return strand ; }
Loops through the given list of locations and returns the consensus Strand class . If the class switches then we will return an undefined strand