private List < ServerAddress > convertToServerAddresses ( Set < String > addresses ) { return addresses . stream ( ) . map ( this :: stringToServerAddress ) . filter ( Objects :: nonNull ) . collect ( Collectors . toList ( ) ) ; }
Converts list of addresses specified in text format to mongodb specific address .