<commit_before>package net.openhft.chronicle.core.util;

import java.util.function.Supplier;

/**
 * A Builder is a configurable Supplier which always creates a new object.
 *
 * @param <T> Of object created
 */
public interface Builder<T> extends Supplier<T> {
    public T build();

    @Override
    default T get() {
        return build();
    }
}<commit_msg>Added a Builder<T> interface to improve consistency of our builders, closes https://github.com/OpenHFT/Chronicle-Core/issues/185<commit_after>package net.openhft.chronicle.core.util;

import org.jetbrains.annotations.NotNull;

import java.util.function.Supplier;

/**
 * A Builder is a configurable Supplier which always creates a new object.
 *
 * @param <T> Of object created
 */
public interface Builder<T> extends Supplier<T> {
    @NotNull
    T build();

    @Override
    @NotNull
    default T get() {
        return build();
    }
}
{'fraction_non_alphanumeric': 0.11049723756906077, 'fraction_numerical': 0.0033149171270718232, 'mean_word_length': 3.4630541871921183, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 1, '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': '3630466', 'n_tokens_mistral': 278, 'n_tokens_neox': 267, 'n_words': 84}