Example usage for org.apache.commons.math3.util Pair hashCode

List of usage examples for org.apache.commons.math3.util Pair hashCode

Introduction

In this page you can find the example usage for org.apache.commons.math3.util Pair hashCode.

Prototype

@Override
public int hashCode() 

Source Link

Document

Compute a hash code.

Usage

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);
}