Java Code Examples for com.hippo.yorozuya.StringUtils#equals()

The following examples show how to use com.hippo.yorozuya.StringUtils#equals() . These examples are extracted from open source projects. 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 Project: MHViewer   File: ListUrlBuilder.java    License: Apache License 2.0 5 votes vote down vote up
public boolean equalsQuickSearch(QuickSearch q) {
    if (null == q) {
        return false;
    }

    if (q.mode != mMode) {
        return false;
    }
    if (q.category != mCategory) {
        return false;
    }
    if (!StringUtils.equals(q.keyword, mKeyword)) {
        return false;
    }
    if (q.advanceSearch != mAdvanceSearch) {
        return false;
    }
    if (q.minRating != mMinRating) {
        return false;
    }
    if (q.pageFrom != mPageFrom) {
        return false;
    }
    if (q.pageTo != mPageTo) {
        return false;
    }

    return true;
}
 
Example 2
Source Project: EhViewer   File: ListUrlBuilder.java    License: Apache License 2.0 5 votes vote down vote up
public boolean equalsQuickSearch(QuickSearch q) {
    if (null == q) {
        return false;
    }

    if (q.mode != mMode) {
        return false;
    }
    if (q.category != mCategory) {
        return false;
    }
    if (!StringUtils.equals(q.keyword, mKeyword)) {
        return false;
    }
    if (q.advanceSearch != mAdvanceSearch) {
        return false;
    }
    if (q.minRating != mMinRating) {
        return false;
    }
    if (q.pageFrom != mPageFrom) {
        return false;
    }
    if (q.pageTo != mPageTo) {
        return false;
    }

    return true;
}