public static Stream < AbstractAttribute > buildAllAttributesStream ( final boolean parallel , final AbstractHtml ... fromTags ) { final Stream < AbstractAttribute > attributesStream = getAllNestedChildrenIncludingParent ( parallel , fromTags ) . filter ( tag -> tag . getAttributes ( ) != null ) . map ( tag -> { return tag . getAttributes ( ) ; } ) . flatMap ( attributes -> attributes . stream ( ) ) ; return attributesStream ; }
Builds all attributes stream from the given tags .