当前位置: 首页>>代码示例>>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;未经允许,请勿转载。