Here you can find the source of hashSpriteName(String name)
public static long hashSpriteName(String name)
//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; } }