예제 #1
0
 @Override
 public int hashCode() {
   int result = id;
   result = 31 * result + (port != null ? port.hashCode() : 0);
   result = 31 * result + (date != null ? date.hashCode() : 0);
   return result;
 }
예제 #2
0
파일: TFN.java 프로젝트: kreczko/storm
  public int hashCode() {

    if (empty) return 0;
    int hash = 17;
    hash = 37 * hash + m.hashCode();
    hash = 37 * hash + p.hashCode();
    hash = 37 * hash + pfn.hashCode();
    return hash;
  }