public void setHslCssValue(final HslCssValue hslCssValue) {
        if (hslCssValue == null) {
            throw new NullValueException("hslCssValue can not be null");
        }
        if (this.hslCssValue != null) {
            if (hslCssValue.isAlreadyInUse() && !Objects.equals(
                    this.hslCssValue.getStateChangeInformer(),
                    hslCssValue.getStateChangeInformer())) {
                try {
                    final HslCssValue hslCssValueClone = CloneUtil
                            .deepClone(hslCssValue);
                    this.hslCssValue.setAlreadyInUse(false);
                    this.hslCssValue = hslCssValueClone;
                    if (LOGGER.isLoggable(Level.WARNING)) {
                        LOGGER.warning("cloned hslCssValue " + hslCssValue
                                + "(hashcode: " + hslCssValue.hashCode()
                                + ") as it is already used by another object");
                    }
                } catch (final CloneNotSupportedException e) {
                    throw new InvalidValueException(e.toString());
                }
            } else {
                this.hslCssValue.setAlreadyInUse(false);
                this.hslCssValue = hslCssValue;
            }
        } else {
            if (hslCssValue.isAlreadyInUse()) {
                try {
                    this.hslCssValue = CloneUtil.deepClone(hslCssValue);
                    if (LOGGER.isLoggable(Level.WARNING)) {
                        LOGGER.warning("cloned hslCssValue " + hslCssValue
                                + "(hashcode: " + hslCssValue.hashCode()
                                + ") as it is already used by another object");
                    }
                } catch (final CloneNotSupportedException e) {
                    throw new InvalidValueException(e.toString());
                }
            } else {
                this.hslCssValue = hslCssValue;
            }
        }
        cssValue = this.hslCssValue.getValue();
        this.hslCssValue.setStateChangeInformer(this);
        this.hslCssValue.setAlreadyInUse(true);
        makeRgbCssValueNull();
        makeRgbaCssValueNull();
        makeHslaCssValueNull();
    }
public void setHslCssValue ( final HslCssValue hslCssValue ) { if ( hslCssValue == null ) { throw new NullValueException ( "hslCssValue can not be null" ) ; } if ( this . hslCssValue != null ) { if ( hslCssValue . isAlreadyInUse ( ) && ! Objects . equals ( this . hslCssValue . getStateChangeInformer ( ) , hslCssValue . getStateChangeInformer ( ) ) ) { try { final HslCssValue hslCssValueClone = CloneUtil . deepClone ( hslCssValue ) ; this . hslCssValue . setAlreadyInUse ( false ) ; this . hslCssValue = hslCssValueClone ; if ( LOGGER . isLoggable ( Level . WARNING ) ) { LOGGER . warning ( "cloned hslCssValue " + hslCssValue + "(hashcode: " + hslCssValue . hashCode ( ) + ") as it is already used by another object" ) ; } } catch ( final CloneNotSupportedException e ) { throw new InvalidValueException ( e . toString ( ) ) ; } } else { this . hslCssValue . setAlreadyInUse ( false ) ; this . hslCssValue = hslCssValue ; } } else { if ( hslCssValue . isAlreadyInUse ( ) ) { try { this . hslCssValue = CloneUtil . deepClone ( hslCssValue ) ; if ( LOGGER . isLoggable ( Level . WARNING ) ) { LOGGER . warning ( "cloned hslCssValue " + hslCssValue + "(hashcode: " + hslCssValue . hashCode ( ) + ") as it is already used by another object" ) ; } } catch ( final CloneNotSupportedException e ) { throw new InvalidValueException ( e . toString ( ) ) ; } } else { this . hslCssValue = hslCssValue ; } } cssValue = this . hslCssValue . getValue ( ) ; this . hslCssValue . setStateChangeInformer ( this ) ; this . hslCssValue . setAlreadyInUse ( true ) ; makeRgbCssValueNull ( ) ; makeRgbaCssValueNull ( ) ; makeHslaCssValueNull ( ) ; }
@param hslCssValue
the hslCssValue to set
@since 1.0.0
@author WFF