Example #1
0
 @Override
 public final int hashCode() {
   int h = 0;
   for (I item : this) {
     if (item == null) continue;
     h += item.hashCode();
   }
   return h;
 }
Example #2
0
 public int hashCode() {
   int result;
   result = (instance != null ? instance.hashCode() : 0);
   result = 29 * result + (label != null ? label.hashCode() : 0);
   return result;
 }