class IdenticalDigestDecideRule extends PredicatedDecideRule {
    private static final long serialVersionUID = 4275993790856626949L;

    /** default for this class is to REJECT */
    {
        setDecision(DecideResult.REJECT);
    }
    
    /**
     * Usual constructor. 
     */
    public IdenticalDigestDecideRule() {
    }

    /**
     * Evaluate whether given CrawlURI's revisit profile has been set to identical digest
     *
     * @return true if CrawlURI has been flagged as an identical digest revist
     */
    protected boolean evaluate(CrawlURI curi) {
        return hasIdenticalDigest(curi);
    }


    /**
     * Utility method for testing if a CrawlURI's revisit profile matches an identical payload digest.
     * 
     * @param curi CrawlURI to test
     * @return true if revisit profile is set to identical payload digest, false otherwise
     */
    public static boolean hasIdenticalDigest(CrawlURI curi) {<FILL_FUNCTION_BODY>}

}

        RevisitProfile revisit = curi.getRevisitProfile();
        if (revisit==null) {
        	return false;
        }
        return revisit.getProfileName().equals(WARCConstants.PROFILE_REVISIT_IDENTICAL_DIGEST);
    
<methods>public void <init>() ,public org.archive.modules.deciderules.DecideResult getDecision() ,public org.archive.modules.deciderules.DecideResult onlyDecision(org.archive.modules.CrawlURI) ,public void setDecision(org.archive.modules.deciderules.DecideResult) <variables>private static final long serialVersionUID