package com.avg.zaap.crashlibrary.core.hash;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

/**
 * This interface defines the common behavior for the hash generators.
 * <p>
 * Created by marek.osvald on 11.5.2016.
 */
public interface IHashGenerator {

    /**
     * Generates a hash for given stacktrace.
     *
     * @param stacktrace stacktrace to generate the hash for
     * @return generated hash
     */
    @Nullable
    String generateHash(@NonNull StackTraceElement[] stacktrace);

}
