Java 类org.apache.commons.lang3.builder.EqualsBuilder 实例源码

项目:Java-GoodGame-Api-Wrapper    文件:GamesContainer.java   
@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();
}
项目:Java-GoodGame-Api-Wrapper    文件:EmbededDonations.java   
@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();
}
项目:cas-5.1.0    文件:DefaultRegisteredServiceAccessStrategy.java   
@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();
}
项目:koryphe    文件:PredicateMap.java   
@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();
}
项目:Java-GoodGame-Api-Wrapper    文件:ResMessage.java   
@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();
}
项目:brick-pop-solver    文件:Color.java   
@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();
}
项目:springboot-shiro-cas-mybatis    文件:ReturnAllAttributeReleasePolicy.java   
@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();
}
项目:Java-GoodGame-Api-Wrapper    文件:Smile.java   
@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();
}
项目:groupsio-api-java    文件:Page.java   
@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();
}
项目:cas-5.1.0    文件:RegisteredServiceChainingAttributeFilter.java   
@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();
}
项目:Spyglass    文件:ReceivedValue.java   
@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();
    }
}
项目:sierra    文件:AlgorithmComparison.java   
@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();
}
项目:Java-GoodGame-Api-Wrapper    文件:User.java   
@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();
}
项目:cas-5.1.0    文件:BaseRegisteredServiceUsernameAttributeProvider.java   
@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();
}
项目:springboot-shiro-cas-mybatis    文件:ServiceTicketImpl.java   
/**
 * {@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();
}
项目:cas-5.1.0    文件:RemoteEndpointServiceAccessStrategy.java   
@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    final RemoteEndpointServiceAccessStrategy rhs = (RemoteEndpointServiceAccessStrategy) obj;
    return new EqualsBuilder()
            .appendSuper(super.equals(obj))
            .append(this.endpointUrl, rhs.endpointUrl)
            .append(this.acceptableResponseCodes, rhs.acceptableResponseCodes)
            .isEquals();
}
项目:ABC-List    文件:Exercise.java   
@Override
   public boolean equals(Object obj) {
       if (this == obj) {
           return true;
       }

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

       final Exercise other = (Exercise) obj;
       return new EqualsBuilder()
               .append(this.getId(), other.getId())
               .append(this.getTopicId(), other.getTopicId())
               .append(this.getGenerationTime(), other.getGenerationTime())
               .isEquals();
   }
项目:brick-pop-solver    文件:Coordinate.java   
@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }

    final Coordinate other = (Coordinate) obj;
    return new EqualsBuilder()
        .append(column, other.column)
        .append(row, other.row)
        .isEquals();
}
项目:yaess    文件:Event.java   
@Override
public boolean equals(Object o) {

    if (this == o)
        return true;

    if (!(o instanceof Event))
        return false;

    Event event = (Event) o;

    return new EqualsBuilder()
        .append(rootAggregateId, event.rootAggregateId)
        .append(eventId, event.eventId)
        .append(created, event.created)
        .append(originator, event.originator)
        .isEquals();
}
项目:Ink    文件:Response.java   
@Override
public boolean equals(Object o) {
    if (this == o) {
        return true;
    }

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

    Response response = (Response) o;

    return new EqualsBuilder()
            .append(body, response.body)
            .append(responseStatus, response.responseStatus)
            .append(headers, response.headers)
            .append(cookies, response.cookies)
            .isEquals();
}
项目:cas-server-4.2.1    文件:ShibbolethCompatiblePersistentIdGenerator.java   
@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    final ShibbolethCompatiblePersistentIdGenerator rhs = (ShibbolethCompatiblePersistentIdGenerator) obj;
    return new EqualsBuilder()
            .append(this.salt, rhs.salt)
            .isEquals();
}
项目:springboot-shiro-cas-mybatis    文件:PrincipalAttributeRegisteredServiceUsernameProvider.java   
@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    final PrincipalAttributeRegisteredServiceUsernameProvider rhs =
            (PrincipalAttributeRegisteredServiceUsernameProvider) obj;
    return new EqualsBuilder()
            .append(this.usernameAttribute, rhs.usernameAttribute)
            .isEquals();
}
项目:jwala    文件:User.java   
@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    User rhs = (User) obj;
    return new EqualsBuilder()
            .append(this.id, rhs.id)
            .isEquals();
}
项目:springboot-shiro-cas-mybatis    文件:ReturnAllowedAttributeReleasePolicy.java   
@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    final ReturnAllowedAttributeReleasePolicy rhs = (ReturnAllowedAttributeReleasePolicy) obj;
    return new EqualsBuilder()
            .appendSuper(super.equals(obj))
            .append(this.allowedAttributes, rhs.allowedAttributes)
            .isEquals();
}
项目:springboot-shiro-cas-mybatis    文件:OAuthRegisteredService.java   
@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    final OAuthRegisteredService rhs = (OAuthRegisteredService) obj;
    return new EqualsBuilder()
            .appendSuper(super.equals(obj))
            .append(this.clientSecret, rhs.clientSecret)
            .append(this.clientId, rhs.clientId)
            .append(this.bypassApprovalPrompt, rhs.bypassApprovalPrompt)
            .isEquals();
}
项目:smesh    文件:ClusterMember.java   
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!(obj instanceof ClusterMember)) {
        return false;
    }

    if (isLocal()) {
        return super.equals(obj);
    }

    ClusterMember other = (ClusterMember) obj;
    EqualsBuilder builder = new EqualsBuilder() //
            .append(getName(), other.getName());
    builder.append(getId(), other.getId());
    return builder.isEquals();
}
项目:koryphe    文件:MapContains.java   
@Override
public boolean equals(final Object obj) {
    if (this == obj) {
        return true;
    }

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

    final MapContains that = (MapContains) obj;

    return new EqualsBuilder()
            .append(key, that.key)
            .isEquals();
}
项目:cas-server-4.2.1    文件:TicketGrantingTicketImpl.java   
@Override
public final boolean equals(final Object object) {
    if (object == null) {
        return false;
    }
    if (object == this) {
        return true;
    }
    if (!(object instanceof TicketGrantingTicket)) {
        return false;
    }

    final Ticket ticket = (Ticket) object;

    return new EqualsBuilder()
            .append(ticket.getId(), this.getId())
            .isEquals();
}
项目:jwala    文件:ExecReturnCode.java   
@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    ExecReturnCode rhs = (ExecReturnCode) obj;
    return new EqualsBuilder()
            .append(this.returnCode, rhs.returnCode)
            .isEquals();
}
项目:koryphe    文件:AbstractInTimeRangeDual.java   
@Override
public boolean equals(final Object obj) {
    if (this == obj) {
        return true;
    }

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

    final AbstractInTimeRangeDual otherPredicate = (AbstractInTimeRangeDual) obj;
    return new EqualsBuilder()
            .append(start, otherPredicate.start)
            .append(startOffset, otherPredicate.startOffset)
            .append(startInclusive, otherPredicate.startInclusive)
            .append(end, otherPredicate.end)
            .append(endOffset, otherPredicate.endOffset)
            .append(endInclusive, otherPredicate.endInclusive)
            .append(offsetUnit, otherPredicate.offsetUnit)
            .append(timeUnit, otherPredicate.timeUnit)
            .isEquals();
}
项目:jwala    文件:ResourceIdentifier.java   
@Override
public boolean equals(Object o) {
    if (this == o) return true;

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

    ResourceIdentifier that = (ResourceIdentifier) o;

    return new EqualsBuilder()
            .append(resourceName, that.resourceName)
            .append(groupName, that.groupName)
            .append(webServerName, that.webServerName)
            .append(jvmName, that.jvmName)
            .append(webAppName, that.webAppName)
            .isEquals();
}
项目:cas-server-4.2.1    文件:AbstractRegisteredServiceAttributeReleasePolicy.java   
@Override
public boolean equals(final Object o) {
    if (o == null) {
        return false;
    }

    if (this == o) {
        return true;
    }

    if (!(o instanceof AbstractRegisteredServiceAttributeReleasePolicy)) {
        return false;
    }

    final AbstractRegisteredServiceAttributeReleasePolicy that = (AbstractRegisteredServiceAttributeReleasePolicy) o;
    final EqualsBuilder builder = new EqualsBuilder();
    return builder
            .append(this.registeredServiceAttributeFilter, that.registeredServiceAttributeFilter)
            .append(this.authorizedToReleaseCredentialPassword, that.authorizedToReleaseCredentialPassword)
            .append(this.authorizedToReleaseProxyGrantingTicket, that.authorizedToReleaseProxyGrantingTicket)
            .append(this.principalAttributesRepository, that.principalAttributesRepository)
            .isEquals();
}
项目:jwala    文件:MultipleIdentifiersRule.java   
@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    MultipleIdentifiersRule rhs = (MultipleIdentifiersRule) obj;
    return new EqualsBuilder()
            .append(this.rules, rhs.rules)
            .isEquals();
}
项目:OperatieBRP    文件:GetalLiteral.java   
@Override
public boolean equals(final Object o) {
    if (this == o) {
        return true;
    }

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

    final GetalLiteral that = (GetalLiteral) o;

    return new EqualsBuilder()
            .append(value, that.value)
            .isEquals();
}
项目:java-pilosa    文件:QueryResult.java   
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!(obj instanceof QueryResult)) {
        return false;
    }
    QueryResult rhs = (QueryResult) obj;
    return new EqualsBuilder()
            .append(bitmapResult, rhs.bitmapResult)
            .append(countItems, rhs.countItems)
            .append(count, rhs.count)
            .append(sum, rhs.sum)
            .isEquals();
}
项目:koryphe    文件:Concat.java   
@Override
public boolean equals(final Object obj) {
    if (this == obj) {
        return true;
    }

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

    final Concat concat = (Concat) obj;

    return new EqualsBuilder()
            .append(separator, concat.separator)
            .isEquals();
}
项目:true_oop    文件:ConstH2Products.java   
@Override
public boolean equals(Object o) {
    if (this == o) return true;

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

    ConstH2Products that = (ConstH2Products) o;

    return new EqualsBuilder()
            .append(dBase, that.dBase)
            .append(origin, that.origin)
            .isEquals();
}
项目:VirtualTool    文件:Settings.java   
@Override
public boolean equals(Object other) {
    if (other == this) {
        return true;
    }
    if ((other instanceof Settings) == false) {
        return false;
    }
    Settings rhs = ((Settings) other);
    return new EqualsBuilder().append(commands, rhs.commands).isEquals();
}
项目:mining    文件:Context.java   
@Override
public boolean equals(Object other) {
    if (other == this) {
        return true;
    }
    if ((other instanceof Context) == false) {
        return false;
    }
    Context rhs = ((Context) other);
    return new EqualsBuilder().append(ancestors, rhs.ancestors).append(descendants, rhs.descendants).isEquals();
}
项目:gocd-elastic-agent-marathon    文件:UpgradeStrategy.java   
@Override
public boolean equals(Object o) {
    if (this == o) return true;

    if (!(o instanceof UpgradeStrategy)) return false;

    UpgradeStrategy that = (UpgradeStrategy) o;

    return new EqualsBuilder()
            .append(getMaximumOverCapacity(), that.getMaximumOverCapacity())
            .append(getMinimumHealthCapacity(), that.getMinimumHealthCapacity())
            .isEquals();
}