private static int bucketIndex(Name name, int tableLength) {
    return name.hashCode() & (tableLength - 1);
  }
Returns the index of the bucket in the array where an entry for the given name should go.
jimfs/src/main/java/com/google/common/jimfs/Directory.java