Java Hash String hashSpriteName(String name)

Here you can find the source of hashSpriteName(String name)

Description

hash Sprite Name

License

Open Source License

Declaration

public static long hashSpriteName(String name) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static long hashSpriteName(String name) {
        name = name.toUpperCase();//from   w  w w.  j a v a 2 s .  c  o  m
        long hash = 0L;
        for (int index = 0; index < name.length(); index++) {
            hash = (hash * 61L + (long) name.charAt(index)) - 32L;
            hash = hash + (hash >> 56) & 0xffffffffffffffL;
        }
        return hash;
    }
}

Related

  1. hashIt(String s)
  2. hasHost(String path)
  3. hashOTP(String otp)
  4. hashPassword(String password)
  5. hashPassword(String password)
  6. hashString(CharSequence str)
  7. hashString(String data, int seed)
  8. hashString(String s)
  9. hashString(String s)