本文整理匯總了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();
}