Ejemplo n.º 1
0
 /** {@inheritDoc} */
 @Override
 public int hashCode() {
   int h = 0;
   for (int i = _pos; i-- > 0; ) {
     h += HashFunctions.hash(_data[i]);
   }
   return h;
 }
 public int hashCode() {
   int h = 0;
   int i = this._pos;
   while (i-- > 0) {
     h = 37 * h + HashFunctions.hash(this._data[i]);
   }
   return h;
 }
Ejemplo n.º 3
0
 /** {@inheritDoc} */
 @Override
 public int hashCode() {
   int h = 0;
   for (int i = size(); i-- > 0; ) {
     h += HashFunctions.hash(get(i));
   }
   return h;
 }
 public final boolean execute(final int key, final Object value) {
   this.h +=
       (TIntObjectHashMap.this._hashingStrategy.computeHashCode(key)
           ^ HashFunctions.hash(value));
   return true;
 }