bundles/org.eclipse.packagedrone.repo.cleanup/src/org/eclipse/packagedrone/repo/cleanup/Aggregator.java
public List<String> makeKey ( final Map<MetaKey, String> metaData, final boolean requireAll )
    {
        final List<String> result = new ArrayList<> ( this.fields.size () );

        for ( final MetaKey field : this.fields )
        {
            final String value = metaData.get ( field );
            if ( requireAll && value == null )
            {
                return null;
            }

            result.add ( value );
        }

        return result;
    }
public List<String> makeKey ( final Map<MetaKey, String> metaData, final boolean requireAll )
    {
        final List<String> result = new ArrayList<> ( this.fields.size () );

        for ( final MetaKey field : this.fields )
        {
            final String value = metaData.get ( field );
            if ( requireAll && value == null )
            {
                return null;
            }

            result.add ( value );
        }

        return result;
    }
Make a key from the aggregator fields

@param metaData
the metadata to build the key from
@param requireAll
if this is {@code true} then all aggregator fields must be
present in the meta data map
@return
the key or {@code null} if {@code requireAll} is {@code true} and
at least one field is missing the provided {@code metaData}