library/src/main/java/com/liulishuo/filedownloader/DownloadTask.java
@Override
    public int getId() {
        if (mId != 0) {
            return mId;
        }

        if (!TextUtils.isEmpty(mPath) && !TextUtils.isEmpty(mUrl)) {
            return mId = FileDownloadUtils.generateId(mUrl, mPath, mPathAsDirectory);
        }

        return 0;
    }
@Override
    public int getId() {
        if (mId != 0) {
            return mId;
        }

        if (!TextUtils.isEmpty(mPath) && !TextUtils.isEmpty(mUrl)) {
            return mId = FileDownloadUtils.generateId(mUrl, mPath, mPathAsDirectory);
        }

        return 0;
    }
@ Override public int getId ( ) { if ( mId != 0 ) { return mId ; } if ( ! TextUtils . isEmpty ( mPath ) && ! TextUtils . isEmpty ( mUrl ) ) { return mId = FileDownloadUtils . generateId ( mUrl , mPath , mPathAsDirectory ) ; } return 0 ; }
------------------- Get -----------------------
------------------- Get -----------------------