private List<CssProperty> addCssPropertiesLockless(final boolean important,
            final CssProperty... cssProperties) {

        final Map<String, String> cssPropertiesToAdd = new LinkedHashMap<>(
                cssProperties.length);

        final List<CssProperty> addedCssProperties = new ArrayList<>(
                cssProperties.length);

        if (important) {
            for (final CssProperty cssProperty : cssProperties) {

                cssPropertiesToAdd.put(cssProperty.getCssName(),
                        cssProperty.getCssValue() + " " + IMPORTANT);
            }
        } else {
            for (final CssProperty cssProperty : cssProperties) {

                cssPropertiesToAdd.put(cssProperty.getCssName(),
                        cssProperty.getCssValue());

            }
        }

        if (cssProperties.length > 0) {
            super.addAllToAttributeValueMap(cssPropertiesToAdd);

            for (final CssProperty cssProperty : cssProperties) {
                final CssProperty addedCssProperty = addCssPropertyNotInSuperLockless(
                        cssProperty);
                if (addedCssProperty != null) {
                    addedCssProperties.add(addedCssProperty);
                }
            }
        }

        return addedCssProperties;
    }
private List < CssProperty > addCssPropertiesLockless ( final boolean important , final CssProperty ... cssProperties ) { final Map < String , String > cssPropertiesToAdd = new LinkedHashMap < > ( cssProperties . length ) ; final List < CssProperty > addedCssProperties = new ArrayList < > ( cssProperties . length ) ; if ( important ) { for ( final CssProperty cssProperty : cssProperties ) { cssPropertiesToAdd . put ( cssProperty . getCssName ( ) , cssProperty . getCssValue ( ) + " " + IMPORTANT ) ; } } else { for ( final CssProperty cssProperty : cssProperties ) { cssPropertiesToAdd . put ( cssProperty . getCssName ( ) , cssProperty . getCssValue ( ) ) ; } } if ( cssProperties . length > 0 ) { super . addAllToAttributeValueMap ( cssPropertiesToAdd ) ; for ( final CssProperty cssProperty : cssProperties ) { final CssProperty addedCssProperty = addCssPropertyNotInSuperLockless ( cssProperty ) ; if ( addedCssProperty != null ) { addedCssProperties . add ( addedCssProperty ) ; } } } return addedCssProperties ; }
@param important
true to mark the given style as important.
@param cssProperties
eg :-
{@code addCssProperties(true, AlignContent.FLEX_END, AlignItems.FLEX_END)}
@since 1.0.0
@author WFF
@return