@Override protected int doHashCode() { final OtpErlangObject.Hash hash = new OtpErlangObject.Hash(4); final int a = arity(); if (a == 0) { return (int) 3468870702L; } for (int i = 0; i < a; i++) { hash.combine(elementAt(i).hashCode()); } final OtpErlangObject t = getLastTail(); if (t != null) { final int h = t.hashCode(); hash.combine(h, h); } return hash.valueOf(); }
@Override protected int doHashCode() { final OtpErlangObject.Hash hash = new OtpErlangObject.Hash(9); final int a = arity(); hash.combine(a); for (int i = 0; i < a; i++) { hash.combine(elems[i].hashCode()); } return hash.valueOf(); }
@Override protected int doHashCode() { final OtpErlangObject.Hash hash = new OtpErlangObject.Hash(1); hash.combine(pid.hashCode(), module.hashCode()); hash.combine(arity); if (md5 != null) { hash.combine(md5); } hash.combine(index); hash.combine(uniq); if (freeVars != null) { for (final OtpErlangObject o : freeVars) { hash.combine(o.hashCode(), 1); } } return hash.valueOf(); }