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

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

Introduction

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

Prototype

public static int hashCodeForList(final Collection<?> list) 

Source Link

Document

Generates a hash code using the algorithm specified in java.util.List#hashCode() .

Usage

From source file:org.midonet.cluster.data.neutron.loadbalancer.Pool.java

@Override
public int hashCode() {
    return Objects.hashCode(adminStateUp, description, ListUtils.hashCodeForList(healthMonitors), id, lbMethod,
            ListUtils.hashCodeForList(members), name, protocol, provider, routerId, status, subnetId, tenantId,
            vipId);/*from   w  w w . j ava  2 s . c  o  m*/
}

From source file:org.midonet.cluster.data.neutron.Port.java

@Override
public int hashCode() {
    return Objects.hashCode(id, name, networkId, adminStateUp, macAddress, deviceId, deviceOwner, tenantId,
            status, ListUtils.hashCodeForList(fixedIps), ListUtils.hashCodeForList(securityGroups));
}

From source file:org.midonet.cluster.data.neutron.SecurityGroup.java

@Override
public int hashCode() {
    return Objects.hashCode(id, name, description, tenantId, ListUtils.hashCodeForList(securityGroupRules));
}

From source file:org.midonet.cluster.data.neutron.Subnet.java

@Override
public int hashCode() {

    return Objects.hashCode(id, name, ipVersion, networkId, cidr, gatewayIp, tenantId, enableDhcp, shared,
            ListUtils.hashCodeForList(allocationPools), ListUtils.hashCodeForList(dnsNameservers),
            ListUtils.hashCodeForList(hostRoutes));
}

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

@Override
public int hashCode() {
    return Objects.hashCode(id, tenantId, name, description, shared, adminStateUp, status, firewallPolicyId,
            ListUtils.hashCodeForList(firewallRuleList), ListUtils.hashCodeForList(addRouterIds),
            ListUtils.hashCodeForList(delRouterIds), lastRouter);
}