Example usage for org.apache.lucene.index Term hashCode

List of usage examples for org.apache.lucene.index Term hashCode

Introduction

In this page you can find the example usage for org.apache.lucene.index Term hashCode.

Prototype

@Override
    public int hashCode() 

Source Link

Usage

From source file:com.zimbra.cs.index.TermsFilter.java

License:Open Source License

@Override
public int hashCode() {
    int hash = 9;
    for (Iterator<Term> iter = terms.iterator(); iter.hasNext();) {
        Term term = iter.next();
        hash = 31 * hash + term.hashCode();
    }// ww w .  j  av  a 2  s .  c  o  m
    return hash;
}