private void putPropertyConstraint ( PropertyConstraint constraint ) { And and = new And ( ) ; and . add ( constraint ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Putting constraint for property '" + constraint . getPropertyName ( ) + "', constraint -> [" + constraint + "]" ) ; } PropertyConstraint compoundConstraint = new CompoundPropertyConstraint ( and ) ; propertiesConstraints . put ( constraint . getPropertyName ( ) , compoundConstraint ) ; orderedConstraints . add ( compoundConstraint ) ; }
Put a constraint into the collection . Store it in the map under the property name and add it to the ordered list .