Java Number Sum sumHash(int hash, String element)

Here you can find the source of sumHash(int hash, String element)

Description

sum Hash

License

Open Source License

Declaration

private static int sumHash(int hash, String element) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2012-2017 Codenvy, S.A.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors://from ww  w.  ja va2  s . c o  m
 *   Codenvy, S.A. - initial API and implementation
 *******************************************************************************/

public class Main {
    private static int sumHash(int hash, String element) {
        return hash * 31 + element.hashCode();
    }
}

Related

  1. sumFirstIntegers(final long i)
  2. sumFirstN(long n)
  3. sumFirstNDivisibleByM(long n, long m)
  4. sumFromNtoM(int n, int m)
  5. sumHadOverflow(long a, long b, long sum)
  6. sumHash(int leftHash, int rightHash)
  7. sumIf(final Integer number, final Integer sum, final Boolean condition)
  8. sumIsMod10(int sum)
  9. sumLange(int _a, int _b)