Example usage for org.apache.commons.collections4 ListUtils isEqualList

List of usage examples for org.apache.commons.collections4 ListUtils isEqualList

Introduction

In this page you can find the example usage for org.apache.commons.collections4 ListUtils isEqualList.

Prototype

public static boolean isEqualList(final Collection<?> list1, final Collection<?> list2) 

Source Link

Document

Tests two lists for value-equality as per the equality contract in java.util.List#equals(java.lang.Object) .

Usage

From source file:org.midonet.cluster.rest_api.neutron.models.Firewall.java

@Override
public final boolean equals(Object obj) {

    if (obj == this)
        return true;

    if (!(obj instanceof Firewall))
        return false;
    final Firewall other = (Firewall) obj;

    return Objects.equal(id, other.id) && Objects.equal(tenantId, other.tenantId)
            && Objects.equal(name, other.name) && Objects.equal(description, other.description)
            && shared == other.shared && adminStateUp == other.adminStateUp
            && Objects.equal(status, other.status) && Objects.equal(firewallPolicyId, other.firewallPolicyId)
            && ListUtils.isEqualList(firewallRuleList, other.firewallRuleList)
            && ListUtils.isEqualList(addRouterIds, other.addRouterIds)
            && ListUtils.isEqualList(delRouterIds, other.delRouterIds) && lastRouter == other.lastRouter;
}

From source file:org.midonet.cluster.rest_api.neutron.models.Router.java

@Override
public boolean equals(Object obj) {

    if (obj == this)
        return true;

    if (!(obj instanceof Router))
        return false;
    final Router other = (Router) obj;

    return Objects.equal(id, other.id) && Objects.equal(name, other.name) && Objects.equal(status, other.status)
            && Objects.equal(tenantId, other.tenantId) && Objects.equal(adminStateUp, other.adminStateUp)
            && Objects.equal(gwPortId, other.gwPortId)
            && Objects.equal(externalGatewayInfo, other.externalGatewayInfo)
            && ListUtils.isEqualList(routes, other.routes);
}