org.greenrobot.greendao.annotation.Keep Java Examples

The following examples show how to use org.greenrobot.greendao.annotation.Keep. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BookReviewBean.java    From NovelReader with MIT License 5 votes vote down vote up
@Keep
public ReviewBookBean getBookBean(){
    if (bookId == null){
        setBook(book);
    }
    if (daoSession == null){
        return book;
    }
    else {
        return getBook();
    }
}
 
Example #2
Source File: BookReviewBean.java    From NovelReader with MIT License 5 votes vote down vote up
@Keep
public BookHelpfulBean getHelpfulBean(){
    if (helpful != null){
        helpful.set_id(get_id());
    }
    if (daoSession == null){
        return helpful;
    }
    else {
        return getHelpful();
    }
}
 
Example #3
Source File: BookHelpsBean.java    From NovelReader with MIT License 5 votes vote down vote up
@Keep
public AuthorBean getAuthorBean(){
    if (authorId == null){
        setAuthor(author);
    }
    if (daoSession == null){
        return author;
    }
    else {
        return getAuthor();
    }
}
 
Example #4
Source File: DownInfo.java    From RxjavaRetrofitDemo-string-master with MIT License 5 votes vote down vote up
@Keep
public DownInfo(long id, String savePath, long countLength, long readLength,
        int connectonTime, int stateInte, String url) {
    this.id = id;
    this.savePath = savePath;
    this.countLength = countLength;
    this.readLength = readLength;
    this.connectonTime = connectonTime;
    this.stateInte = stateInte;
    this.url = url;
}
 
Example #5
Source File: DownInfo.java    From RxjavaRetrofitDemo-master with MIT License 5 votes vote down vote up
@Keep
public DownInfo(long id, String savePath, long countLength, long readLength,
        int connectonTime, int stateInte, String url) {
    this.id = id;
    this.savePath = savePath;
    this.countLength = countLength;
    this.readLength = readLength;
    this.connectonTime = connectonTime;
    this.stateInte = stateInte;
    this.url = url;
}
 
Example #6
Source File: DownInfo.java    From RxjavaRetrofitDemo-master with MIT License 4 votes vote down vote up
@Keep
public DownInfo() {
    readLength=0l;
    countLength=0l;
    stateInte=DownState.START.getState();
}