List of usage examples for com.google.common.primitives Ints hashCode
public static int hashCode(int value)
From source file:garmintools.keys.IndexForeignKey.java
@Override public int hashCode() { return Ints.hashCode(index); }
From source file:garmintools.keys.SectionOffsetForeignKey.java
@Override public int hashCode() { return Ints.hashCode(sectionOffset); }
From source file:com.b2international.collections.objects.ObjectKeyIntMapWrapper.java
@Override public int hashCode() { int h = 0;/* w w w . j ava2s .c o m*/ final Iterator<K> i = keySet().iterator(); while (i.hasNext()) { K key = i.next(); int value = get(key); h += (key == null ? 0 : key.hashCode()) ^ Ints.hashCode(value); } return h; }
From source file:com.analog.lyric.dimple.model.values.IndexedValue.java
/** * Hash code is based soley on {@code #getIndex()} value. */ @Override public int hashCode() { return Ints.hashCode(_index); }
From source file:org.elasticsearch.index.fielddata.util.IntArrayRef.java
@Override public int hashCode() { int result = 1; for (int i = start; i < end; i++) { result = 31 * result + Ints.hashCode(values[i]); }// w ww . j a v a 2 s .c o m return result; }