Exemplo n.º 1
0
 @Override
 public boolean equals(Object o) {
   if (o instanceof FileFragment) {
     FileFragment t = (FileFragment) o;
     if (getPath().equals(t.getPath())
         && TUtil.checkEquals(t.getStartKey(), this.getStartKey())
         && TUtil.checkEquals(t.getLength(), this.getLength())) {
       return true;
     }
   }
   return false;
 }
Exemplo n.º 2
0
 @Override
 public Object clone() throws CloneNotSupportedException {
   FileFragment frag = (FileFragment) super.clone();
   frag.diskIds = diskIds;
   return frag;
 }