List of usage examples for org.apache.commons.math3.util Pair hashCode
@Override public int hashCode()
From source file:it.unibo.alchemist.language.protelis.datatype.AbstractField.java
@Override public int hashCode() { int[] hash = new int[size()]; int i = 0;/* w w w . j a va 2 s . com*/ for (final Pair<DeviceUID, Object> pv : coupleIterator()) { hash[i++] = pv.hashCode(); } return HashUtils.djb2int32(hash); }
From source file:org.protelis.lang.datatype.impl.AbstractField.java
@Override public final int hashCode() { int[] hash = new int[size()]; int i = 0;//from w w w. j a v a 2s . c o m for (final Pair<DeviceUID, Object> pv : coupleIterator()) { hash[i++] = pv.hashCode(); } return HashUtils.djb2int32(hash); }