public NetworkFilter nameContains ( String ... subStrings ) { checkNotNull ( subStrings , "Name match criteria must be not a null" ) ; predicate = predicate . and ( combine ( NetworkMetadata :: getName , in ( asList ( subStrings ) , Predicates :: containsIgnoreCase ) ) ) ; return this ; }
Method allow to filter networks by key phrase that contains in its name . Filtering will be case insensitive and will use substring matching .