private static List < ConnectionNotation > getSelfCycleConnections ( String id , List < ConnectionNotation > connections ) { List < ConnectionNotation > list = new ArrayList < ConnectionNotation > ( ) ; for ( ConnectionNotation connection : connections ) { if ( connection . getSourceId ( ) . getId ( ) . equals ( id ) ) { list . add ( connection ) ; } } return list ; }
method to get for one polymer all self - cycle ConnectionNotations