本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}