Android Hash Code Calculate createHash(String title, String URL, String content)

Here you can find the source of createHash(String title, String URL, String content)

Description

create Hash

Declaration

public static int createHash(String title, String URL, String content) 

Method Source Code

//package com.java2s;

public class Main {
    public static int createHash(String title, String URL, String content) {
        int hash = 1;
        hash = hash * 31 + (title == null ? 0 : title.hashCode());
        hash = hash * 31 + (URL == null ? 0 : URL.hashCode());
        hash = hash * 31 + (content == null ? 0 : content.hashCode());
        return hash;
    }//w  w w  . j  a  v a 2s. c  om
}

Related

  1. getHash(String text)
  2. getHashCode(final Object... pObjects)
  3. getHashCode(final byte... pBytes)
  4. getHashStringFromId(String id)
  5. getHexDigit(String s, int i)
  6. createHash(String toHash)
  7. hash(int aSeed, boolean aBoolean)
  8. hash(int aSeed, char aChar)
  9. hash(int aSeed, int aInt)