List of usage examples for com.google.common.hash Hasher hashCode
@Override
@Deprecated
int hashCode();
From source file:com.cloudera.oryx.app.classreg.example.Example.java
public Example(Feature target, Feature... features) { Preconditions.checkArgument(features != null); this.features = features; this.target = target; Hasher hasher = HASH.newHasher(); for (Feature feature : features) { if (feature != null) { hasher.putInt(feature.hashCode()); }// ww w .jav a 2s . co m } if (target != null) { hasher.putInt(target.hashCode()); } cachedHashCode = hasher.hashCode(); }