protected List < Object > filterAttributeValuesByPattern ( final Set < Object > attributeValues , final Pattern pattern ) { return attributeValues . stream ( ) . filter ( v -> RegexUtils . matches ( pattern , v . toString ( ) , completeMatch ) ) . collect ( Collectors . toList ( ) ) ; }
Filter attribute values by pattern and return the list .