Here you can find the source of hashValueFor(final boolean b)
public static int hashValueFor(final boolean b)
//package com.java2s; public class Main { public static int hashValueFor(final int i) { return i; }/*from www . jav a 2 s. com*/ public static int hashValueFor(final boolean b) { return b ? 1 : 0; } public static int hashValueFor(final long l) { return (int) l; } public static int hashValueFor(final float f) { return (int) f * 1000; } public static int hashValueFor(final double d) { return (int) d * 1000; } public static int hashValueFor(final char c) { return (int) c; } public static int hashValueFor(final byte b) { return (int) b; } public static int hashValueFor(final short s) { return (int) s; } public static int hashValueFor(final Object o) { if (o == null) return -1; return o.hashCode(); } }