<commit_before>package net.nemerosa.ontrack.extension.general;

import lombok.Data;
import net.nemerosa.ontrack.model.structure.ValidationStamp;

import java.util.List;

@Data
public class AutoPromotionProperty {

    /**
     * List of needed validation stamps
     * <p>
     * FIXME Use direct reference to validation stamps
     * <p>
     * Use `fromStorage` and co to store only the IDs, but use the complete validation stamps
     * for back to the client, in order to get a full representation of the validation stamp.
     */
    private final List<ValidationStamp> validationStamps;

    public boolean contains(ValidationStamp vs) {
        return validationStamps.stream().anyMatch(v -> (v.id() == vs.id()));
    }
}<commit_msg>#254 Removal of FIXME<commit_after>package net.nemerosa.ontrack.extension.general;

import lombok.Data;
import net.nemerosa.ontrack.model.structure.ValidationStamp;

import java.util.List;

@Data
public class AutoPromotionProperty {

    /**
     * List of needed validation stamps
     */
    private final List<ValidationStamp> validationStamps;

    public boolean contains(ValidationStamp vs) {
        return validationStamps.stream().anyMatch(v -> (v.id() == vs.id()));
    }
}
{'fraction_non_alphanumeric': 0.10057236304170074, 'fraction_numerical': 0.0024529844644317253, 'mean_word_length': 3.6188679245283017, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5665575', 'n_tokens_mistral': 362, 'n_tokens_neox': 351, 'n_words': 101}