@Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((element == null) ? 0 : element.hashCode());
   result = prime * result + ((value == null) ? 0 : value.hashCode());
   return result;
 }
コード例 #2
0
 /*
  * (non-Javadoc)
  *
  * @see java.lang.Object#hashCode()
  */
 @Override
 public int hashCode() {
   if (delegateElement == null) return -1;
   return delegateElement.hashCode();
 }