@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; }
@Override public Object clone() throws CloneNotSupportedException { FileFragment frag = (FileFragment) super.clone(); frag.diskIds = diskIds; return frag; }