Example usage for com.google.common.hash Hasher interface-usage

List of usage examples for com.google.common.hash Hasher interface-usage

Introduction

In this page you can find the example usage for com.google.common.hash Hasher interface-usage.

Usage

From source file fr.inria.atlanmod.neoemf.io.hash.Md5Hasher.java

/**
 * A {@link Hasher} using the {@code MD5} algorithm.
 */
public class Md5Hasher implements Hasher {

    private static final HashFunction hashFunction = Hashing.md5();

From source file com.complexible.common.hash.AbstractHasher.java

/**
 * <p>An abstract Hasher implementation derived from the Guava AbstractHasher, which is packaged private, while this is public
 * making it accessible for all implementors.</p>
 *
 * @author   Michael Grove
 * @since   2.3

From source file org.gradle.api.internal.hash.DefaultHasher.java

public class DefaultHasher implements Hasher {
    private static final byte[] SIGNATURE = Hashing.md5().hashString(DefaultHasher.class.getName(), Charsets.UTF_8)
            .asBytes();

    public HashCode hash(File file) {
        try {

From source file org.gradle.api.internal.changedetection.state.TrackingHasher.java

public class TrackingHasher implements Hasher {
    private final Hasher delegate;
    private boolean modified;

    public TrackingHasher(Hasher delegate) {
        this.delegate = delegate;

From source file com.facebook.buck.util.hash.AppendingHasher.java

/**
 * {@link Hasher} whose {@code put*} calls are forwarded to a sequence of {@link Hasher} objects.
 * <p>
 * When {@link #hash()} is invoked, the {@link #hash()} method of the first {@link Hasher} in the
 * sequence is invoked, and then the {@link Hasher} is removed from the sequence. This makes it
 * possible to invoke additional {@code put*} methods after {@link #hash()} is invoked, which is not

From source file ome.util.checksum.NonGuavaHasherImpl.java

/**
 * An implementation of the {@link Hasher} interface. Uses
 * {@link Checksum} for all computations and as the result source. Any operations
 * not supported in {@link Checksum} throw {@link UnsupportedOperationException}.
 *
 * @author Blazej Pindelski, bpindelski at dundee.ac.uk