Exemplo n.º 1
0
 /*
  * (non-Javadoc)
  *
  * @see java.lang.Object#hashCode()
  */
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((fileName == null) ? 0 : fileName.hashCode());
   result = prime * result + ((source == null) ? 0 : source.hashCode());
   result = prime * result + (int) (startTime ^ (startTime >>> 32));
   return result;
 }
Exemplo n.º 2
0
 /*
  * (non-Javadoc)
  *
  * @see java.lang.Object#equals(java.lang.Object)
  */
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   TftpTransfer other = (TftpTransfer) obj;
   if (fileName == null) {
     if (other.fileName != null) return false;
   } else if (!fileName.equals(other.fileName)) return false;
   if (source == null) {
     if (other.source != null) return false;
   } else if (!source.equals(other.source)) return false;
   if (startTime != other.startTime) return false;
   return true;
 }