protected int hashForProbe(String originalForm, int dataSize, String name, int probe) { Preconditions.checkArgument(dataSize == this.dataSize, "dataSize argument [" + dataSize + "] does not match expected dataSize [" + this.dataSize + ']'); if (caches[probe].containsKey(originalForm.hashCode())) { return caches[probe].get(originalForm.hashCode()); } int hash = hashForProbe(originalForm.getBytes(Charsets.UTF_8), dataSize, name, probe); caches[probe].put(originalForm.hashCode(), hash); return hash; } }