Code example for HashFunction

Methods: newHasher

     * Create a description writer for a particular hash function. 
     * @param func The hash function. 
     * @return A description writer that computes a hash using {@code func}. 
    public static HashDescriptionWriter hashWriter(HashFunction func) {
        return new HashDescriptionWriter(func.newHasher());
     * Construct a new description writer that outputs a string. 
     * @return A string description writer. 
    public static StringDescriptionWriter stringWriter() { 
        return new StringDescriptionWriter(); 
     * Get a default describer.  This describer uses the following algorithm: 
     * <ol> 
     * <li>If the object is {@link Describable}, call its its {@link Describable#describeTo(DescriptionWriter)} method.</li>