當前位置: 首頁>>代碼示例>>Java>>正文


Java EqualsBuilder類代碼示例

本文整理匯總了Java中org.apache.commons.lang3.builder.EqualsBuilder的典型用法代碼示例。如果您正苦於以下問題:Java EqualsBuilder類的具體用法?Java EqualsBuilder怎麽用?Java EqualsBuilder使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


EqualsBuilder類屬於org.apache.commons.lang3.builder包,在下文中一共展示了EqualsBuilder類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(Object o) {
    if (this == o) return true;

    if (o == null || getClass() != o.getClass()) return false;

    GamesContainer that = (GamesContainer) o;

    return new EqualsBuilder()
            .append(games, that.games)
            .append(pageCount, that.pageCount)
            .append(pageSize, that.pageSize)
            .append(totalItems, that.totalItems)
            .append(page, that.page)
            .isEquals();
}
 
開發者ID:MaximKulikov,項目名稱:Java-GoodGame-Api-Wrapper,代碼行數:17,代碼來源:GamesContainer.java

示例2: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(Object o) {
    if (this == o) return true;

    if (o == null || getClass() != o.getClass()) return false;

    EmbededDonations that = (EmbededDonations) o;

    return new EqualsBuilder()
            .append(id, that.id)
            .append(username, that.username)
            .append(amount, that.amount)
            .append(paidDate, that.paidDate)
            .append(comment, that.comment)
            .isEquals();
}
 
開發者ID:MaximKulikov,項目名稱:Java-GoodGame-Api-Wrapper,代碼行數:17,代碼來源:EmbededDonations.java

示例3: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    final DefaultRegisteredServiceAccessStrategy rhs = (DefaultRegisteredServiceAccessStrategy) obj;
    return new EqualsBuilder()
            .append(this.enabled, rhs.enabled)
            .append(this.ssoEnabled, rhs.ssoEnabled)
            .append(this.requireAllAttributes, rhs.requireAllAttributes)
            .append(this.requiredAttributes, rhs.requiredAttributes)
            .append(this.unauthorizedRedirectUrl, rhs.unauthorizedRedirectUrl)
            .append(this.caseInsensitive, rhs.caseInsensitive)
            .append(this.rejectedAttributes, rhs.rejectedAttributes)
            .isEquals();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:23,代碼來源:DefaultRegisteredServiceAccessStrategy.java

示例4: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (this == obj) {
        return true;
    }

    if (null == obj || !getClass().equals(obj.getClass())) {
        return false;
    }

    final PredicateMap predicateMap = (PredicateMap) obj;
    return new EqualsBuilder()
            .append(predicate, predicateMap.predicate)
            .append(key, predicateMap.key)
            .isEquals();
}
 
開發者ID:gchq,項目名稱:koryphe,代碼行數:17,代碼來源:PredicateMap.java

示例5: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(Object o) {
    if (this == o) return true;

    if (o == null || getClass() != o.getClass()) return false;

    ResMessage that = (ResMessage) o;

    return new EqualsBuilder()
            .append(channelId, that.channelId)
            .append(userId, that.userId)
            .append(userName, that.userName)
            .append(userRights, that.userRights)
            .append(premium, that.premium)
            .append(hideIcon, that.hideIcon)
            .append(mobile, that.mobile)
            .append(payments, that.payments)
            .append(paidsmiles, that.paidsmiles)
            .append(messageId, that.messageId)
            .append(timestamp, that.timestamp)
            .append(color, that.color)
            .append(text, that.text)
            .isEquals();
}
 
開發者ID:MaximKulikov,項目名稱:Java-GoodGame-Api-Wrapper,代碼行數:25,代碼來源:ResMessage.java

示例6: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }

    final Color other = (Color) obj;
    return new EqualsBuilder()
        .append(code, other.code)
        .isEquals();
}
 
開發者ID:neocotic,項目名稱:brick-pop-solver,代碼行數:18,代碼來源:Color.java

示例7: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }

    return new EqualsBuilder()
            .appendSuper(super.equals(obj))
            .isEquals();
}
 
開發者ID:hsj-xiaokang,項目名稱:springboot-shiro-cas-mybatis,代碼行數:17,代碼來源:ReturnAllAttributeReleasePolicy.java

示例8: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(Object o) {
    if (this == o) return true;

    if (o == null || getClass() != o.getClass()) return false;

    Smile smile = (Smile) o;

    return new EqualsBuilder()
            .append(key, smile.key)
            .append(donateLvl, smile.donateLvl)
            .append(isPremium, smile.isPremium)
            .append(isPaid, smile.isPaid)
            .append(channelId, smile.channelId)
            .append(urls, smile.urls)
            .isEquals();
}
 
開發者ID:MaximKulikov,項目名稱:Java-GoodGame-Api-Wrapper,代碼行數:18,代碼來源:Smile.java

示例9: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(final Object other)
{
    if (other == this)
    {
        return true;
    }
    if ((other instanceof Page) == false)
    {
        return false;
    }
    final Page rhs = ((Page) other);
    return new EqualsBuilder().append(object, rhs.object).append(totalCount, rhs.totalCount).append(startItem, rhs.startItem)
            .append(endItem, rhs.endItem).append(hasMore, rhs.hasMore).append(nextPageToken, rhs.nextPageToken).append(data, rhs.data)
            .isEquals();
}
 
開發者ID:lake54,項目名稱:groupsio-api-java,代碼行數:17,代碼來源:Page.java

示例10: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    final RegisteredServiceChainingAttributeFilter rhs = (RegisteredServiceChainingAttributeFilter) obj;
    return new EqualsBuilder()
            .append(this.filters, rhs.filters)
            .isEquals();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:17,代碼來源:RegisteredServiceChainingAttributeFilter.java

示例11: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(final Object obj) {
	if (obj == null) {
		return false;

	} else if (obj == this) {
		return true;

	} else if (obj.getClass() != ReceivedValue.class) {
		return false;

	} else {
		final ReceivedValue objCast = (ReceivedValue) obj;

		final EqualsBuilder builder = new EqualsBuilder();

		builder.append(exists, objCast.exists);
		builder.append(value, objCast.value);

		return builder.isEquals();
	}
}
 
開發者ID:MatthewTamlin,項目名稱:Spyglass,代碼行數:23,代碼來源:ReceivedValue.java

示例12: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(Object o) {
	if (o == this) { return true; }
	if (o == null) { return false; }
	if (!(o instanceof ComparableDrugScore)) { return false;}
	ComparableDrugScore ds = (ComparableDrugScore) o;

	// isDeletion and isInsertion is related to aas
	return new EqualsBuilder()
		.append(drug, ds.drug)
		.append(algorithm, ds.algorithm)
		.append(SIR, ds.SIR)
		.append(interpretation, ds.interpretation)
		.append(explanation, ds.explanation)
		.isEquals();
}
 
開發者ID:hivdb,項目名稱:sierra,代碼行數:17,代碼來源:AlgorithmComparison.java

示例13: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(Object o) {
    if (this == o) return true;

    if (o == null || getClass() != o.getClass()) return false;

    User user = (User) o;

    return new EqualsBuilder()
            .append(userId, user.userId)
            .append(secure, user.secure)
            .append(email, user.email)
            .append(payments, user.payments)
            .append(subscribed, user.subscribed)
            .append(subscribedStream, user.subscribedStream)
            .append(subscribedAnons, user.subscribedAnons)
            .append(wallet, user.wallet)
            .isEquals();
}
 
開發者ID:MaximKulikov,項目名稱:Java-GoodGame-Api-Wrapper,代碼行數:20,代碼來源:User.java

示例14: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    final BaseRegisteredServiceUsernameAttributeProvider rhs = (BaseRegisteredServiceUsernameAttributeProvider) obj;
    return new EqualsBuilder()
            .append(this.canonicalizationMode, rhs.canonicalizationMode)
            .append(this.encryptUsername, rhs.encryptUsername)
            .isEquals();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:18,代碼來源:BaseRegisteredServiceUsernameAttributeProvider.java

示例15: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入依賴的package包/類
/**
 * {@inheritDoc}
 */
@Override
public boolean equals(final Object object) {
    if (object == null) {
        return false;
    }
    if (object == this) {
        return true;
    }
    if (!(object instanceof ServiceTicket)) {
        return false;
    }

    final Ticket ticket = (Ticket) object;

    return new EqualsBuilder()
            .append(ticket.getId(), this.getId())
            .isEquals();
}
 
開發者ID:hsj-xiaokang,項目名稱:springboot-shiro-cas-mybatis,代碼行數:22,代碼來源:ServiceTicketImpl.java


注:本文中的org.apache.commons.lang3.builder.EqualsBuilder類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。