private RelationType getRelationType ( int type ) { RelationType result ; if ( type > 0 && type < RELATION_TYPES . length ) { result = RELATION_TYPES [ type ] ; } else { result = RelationType . FINISH_START ; } return result ; }
Convert an integer to a RelationType instance .