

package org.gradle.api.internal.changedetection.state;

import org.gradle.internal.Factory;
import org.gradle.internal.hash.Hasher;

public interface ResourceFilter extends ConfigurableNormalizer {
    ResourceFilter FILTER_NOTHING = new ResourceFilter() {
        @Override
        public boolean shouldBeIgnored(Factory<String[]> relativePathFactory) {
            return false;
        }

        @Override
        public void appendConfigurationToHasher(Hasher hasher) {
            hasher.putString(getClass().getName());
        }
    };

    boolean shouldBeIgnored(Factory<String[]> relativePathFactory);
}
