Exemplo n.º 1
0
 public int hasheq() {
   if (_hasheq == -1) {
     // this._hasheq = mapHasheq(this);
     _hasheq = Murmur3.hashUnordered(this);
   }
   return _hasheq;
 }
Exemplo n.º 2
0
 public static int mapHasheq(IPersistentMap m) {
   return Murmur3.hashUnordered(m);
   //	int hash = 0;
   //	for(ISeq s = m.seq(); s != null; s = s.next())
   //		{
   //		Map.Entry e = (Map.Entry) s.first();
   //		hash += Util.hasheq(e.getKey()) ^
   //				Util.hasheq(e.getValue());
   //		}
   //	return hash;
 }