Java Hash Calculate hash(int state1, int state2, int numStates1)

Here you can find the source of hash(int state1, int state2, int numStates1)

Description

hash

License

Open Source License

Declaration

public static int hash(int state1, int state2, int numStates1) 

Method Source Code

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

public class Main {
    public static int hash(int state1, int state2, int numStates1) {
        return state1 + numStates1 * state2;
    }/*www  .j  av  a 2  s. c  o m*/

    public static int hash(int state1, int state2, int state3,
            int numStates1, int numStates2) {
        return state1 + numStates1 * (state2 + numStates2 * state3);
    }

    public static int hash(int state1, int state2, int state3, int state4,
            int numStates1, int numStates2, int numStates3) {
        return state1 + numStates1
                * (state2 + numStates2 * (state3 + numStates3 * state4));
    }
}

Related

  1. hash(int p_188208_0_)
  2. hash(int seed, boolean value)
  3. hash(int seed, int i)
  4. hash(int seed, int toHash)
  5. hash(int seed, int val)
  6. hash(int val)
  7. hash(int value)
  8. hash(int x, int y)
  9. hash(long key)