<commit_before>package sk.teamsoft.observablecollection;

/**
 * Interface intended for non-trivial comparison for DiffUtils
 * If object does not implement this interface, it will be compared by default with
 * {@link Object#equals(Object)} and {@link Object#hashCode()} for reference and content
 * comparison respectively
 * @author <NAME>
 */
@SuppressWarnings("WeakerAccess")
public interface DiffResolver<T> {

    /**
     * Method used to determine item equality
     * Determines it viewHolder should be replaced
     * @param other new item to compare with the old one
     * @return true if objects are considered equal
     */
    boolean equalsItem(T other);

    /**
     * Method used to determine contents equality
     * Determines if viewHolder should be updated
     * This is only checked if {@link #equalsItem(Object)} returns true
     * @param other new item to compare with the old one
     * @return true if contents of these objects are equal
     */
    boolean areContentsTheSame(T other);
}<commit_msg>correct override non-nullable type for kotlin<commit_after>package sk.teamsoft.observablecollection;

import android.support.annotation.NonNull;

/**
 * Interface intended for non-trivial comparison for DiffUtils
 * If object does not implement this interface, it will be compared by default with
 * {@link Object#equals(Object)} and {@link Object#hashCode()} for reference and content
 * comparison respectively
 * @author <NAME>
 */
@SuppressWarnings("WeakerAccess")
public interface DiffResolver<T> {

    /**
     * Method used to determine item equality
     * Determines it viewHolder should be replaced
     * @param other new item to compare with the old one
     * @return true if objects are considered equal
     */
    boolean equalsItem(@NonNull T other);

    /**
     * Method used to determine contents equality
     * Determines if viewHolder should be updated
     * This is only checked if {@link #equalsItem(Object)} returns true
     * @param other new item to compare with the old one
     * @return true if contents of these objects are equal
     */
    boolean areContentsTheSame(@NonNull T other);
}
{'fraction_non_alphanumeric': 0.07467532467532467, 'fraction_numerical': 0.0, 'mean_word_length': 3.638709677419355, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '834227', 'n_tokens_mistral': 529, 'n_tokens_neox': 525, 'n_words': 239}