Beispiel #1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((name == null) ? 0 : name.hashCode());
   result = prime * result + ((timestamp == null) ? 0 : timestamp.hashCode());
   result = prime * result + ((type == null) ? 0 : type.hashCode());
   return result;
 }
Beispiel #2
0
 public int hashCode() {
   int code = name.hashCode();
   for (Type arg : arg_types) code += arg.hashCode();
   return code;
 }