Example usage for java.util UUID equals

List of usage examples for java.util UUID equals

Introduction

In this page you can find the example usage for java.util UUID equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Compares this object to the specified object.

Usage

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_1.CFAst.CFAstSecDeviceHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFAstSecDeviceHPKey) {
        CFAstSecDeviceHPKey rhs = (CFAstSecDeviceHPKey) obj;
        {/*from  ww  w. j  a v a 2 s.  c o m*/
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (!getRequiredSecUserId().equals(rhs.getRequiredSecUserId())) {
            return (false);
        }
        if (!getRequiredDevName().equals(rhs.getRequiredDevName())) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAstHPKey) {
        CFAstHPKey rhs = (CFAstHPKey) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        return (true);
    } else if (obj instanceof CFAstSecDevicePKey) {
        CFAstSecDevicePKey rhs = (CFAstSecDevicePKey) obj;
        if (!getRequiredSecUserId().equals(rhs.getRequiredSecUserId())) {
            return (false);
        }
        if (!getRequiredDevName().equals(rhs.getRequiredDevName())) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAstSecDeviceHBuff) {
        CFAstSecDeviceHBuff rhs = (CFAstSecDeviceHBuff) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (!getRequiredSecUserId().equals(rhs.getRequiredSecUserId())) {
            return (false);
        }
        if (!getRequiredDevName().equals(rhs.getRequiredDevName())) {
            return (false);
        }
        if (!getRequiredSecUserId().equals(rhs.getRequiredSecUserId())) {
            return (false);
        }
        if (!getRequiredDevName().equals(rhs.getRequiredDevName())) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAstSecDeviceBuff) {
        CFAstSecDeviceBuff rhs = (CFAstSecDeviceBuff) obj;
        if (!getRequiredSecUserId().equals(rhs.getRequiredSecUserId())) {
            return (false);
        }
        if (!getRequiredDevName().equals(rhs.getRequiredDevName())) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:com.megster.cordova.ble.central.Peripheral.java

private BluetoothGattCharacteristic findNotifyCharacteristic(BluetoothGattService service,
        UUID characteristicUUID) {
    BluetoothGattCharacteristic characteristic = null;

    // Check for Notify first
    List<BluetoothGattCharacteristic> characteristics = service.getCharacteristics();
    for (BluetoothGattCharacteristic c : characteristics) {
        if ((c.getProperties() & BluetoothGattCharacteristic.PROPERTY_NOTIFY) != 0
                && characteristicUUID.equals(c.getUuid())) {
            characteristic = c;//from  w  w  w .jav a2s  .  com
            break;
        }
    }

    if (characteristic != null)
        return characteristic;

    // If there wasn't Notify Characteristic, check for Indicate
    for (BluetoothGattCharacteristic c : characteristics) {
        if ((c.getProperties() & BluetoothGattCharacteristic.PROPERTY_INDICATE) != 0
                && characteristicUUID.equals(c.getUuid())) {
            characteristic = c;
            break;
        }
    }

    // As a last resort, try and find ANY characteristic with this UUID, even if it doesn't have the correct properties
    if (characteristic == null) {
        characteristic = service.getCharacteristic(characteristicUUID);
    }

    return characteristic;
}

From source file:nu.yona.server.subscriptions.rest.UserController.java

private HttpEntity<UserResource> getUser(UUID requestingUserId, String requestingDeviceIdStr, UUID userId,
        boolean isCreatedOnBuddyRequest, Optional<String> password) {
    try (CryptoSession cryptoSession = CryptoSession.start(password,
            () -> userService.doPreparationsAndCheckCanAccessPrivateData(requestingUserId))) {
        if (requestingUserId.equals(userId)) {
            return getOwnUser(requestingUserId, requestingDeviceIdStr, isCreatedOnBuddyRequest);
        }//w  w w .j  ava  2 s.  c  o m
        return getBuddyUser(userId, requestingUserId);
    }
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrm.CFCrmAddressTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFCrmAddressTagHPKey) {
        CFCrmAddressTagHPKey rhs = (CFCrmAddressTagHPKey) obj;
        {//from  www. java  2  s.co m
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmHPKey) {
        CFCrmHPKey rhs = (CFCrmHPKey) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        return (true);
    } else if (obj instanceof CFCrmAddressTagPKey) {
        CFCrmAddressTagPKey rhs = (CFCrmAddressTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmAddressTagHBuff) {
        CFCrmAddressTagHBuff rhs = (CFCrmAddressTagHBuff) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmAddressTagBuff) {
        CFCrmAddressTagBuff rhs = (CFCrmAddressTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrm.CFCrmAttachmentTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFCrmAttachmentTagHPKey) {
        CFCrmAttachmentTagHPKey rhs = (CFCrmAttachmentTagHPKey) obj;
        {// w  w w. j a v a 2s  .c om
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmHPKey) {
        CFCrmHPKey rhs = (CFCrmHPKey) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        return (true);
    } else if (obj instanceof CFCrmAttachmentTagPKey) {
        CFCrmAttachmentTagPKey rhs = (CFCrmAttachmentTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmAttachmentTagHBuff) {
        CFCrmAttachmentTagHBuff rhs = (CFCrmAttachmentTagHBuff) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmAttachmentTagBuff) {
        CFCrmAttachmentTagBuff rhs = (CFCrmAttachmentTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrm.CFCrmContactTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFCrmContactTagHPKey) {
        CFCrmContactTagHPKey rhs = (CFCrmContactTagHPKey) obj;
        {/*from   w ww .  j ava 2s  .  c o m*/
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmHPKey) {
        CFCrmHPKey rhs = (CFCrmHPKey) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        return (true);
    } else if (obj instanceof CFCrmContactTagPKey) {
        CFCrmContactTagPKey rhs = (CFCrmContactTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmContactTagHBuff) {
        CFCrmContactTagHBuff rhs = (CFCrmContactTagHBuff) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmContactTagBuff) {
        CFCrmContactTagBuff rhs = (CFCrmContactTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrm.CFCrmMemoTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFCrmMemoTagHPKey) {
        CFCrmMemoTagHPKey rhs = (CFCrmMemoTagHPKey) obj;
        {//from   w w w  . j  av  a  2s. c o  m
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmHPKey) {
        CFCrmHPKey rhs = (CFCrmHPKey) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        return (true);
    } else if (obj instanceof CFCrmMemoTagPKey) {
        CFCrmMemoTagPKey rhs = (CFCrmMemoTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmMemoTagHBuff) {
        CFCrmMemoTagHBuff rhs = (CFCrmMemoTagHBuff) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmMemoTagBuff) {
        CFCrmMemoTagBuff rhs = (CFCrmMemoTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrm.CFCrmPhoneTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFCrmPhoneTagHPKey) {
        CFCrmPhoneTagHPKey rhs = (CFCrmPhoneTagHPKey) obj;
        {/*from  w  w w  .ja  v a2  s.c  om*/
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredPhoneId() != rhs.getRequiredPhoneId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmHPKey) {
        CFCrmHPKey rhs = (CFCrmHPKey) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        return (true);
    } else if (obj instanceof CFCrmPhoneTagPKey) {
        CFCrmPhoneTagPKey rhs = (CFCrmPhoneTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredPhoneId() != rhs.getRequiredPhoneId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmPhoneTagHBuff) {
        CFCrmPhoneTagHBuff rhs = (CFCrmPhoneTagHBuff) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredPhoneId() != rhs.getRequiredPhoneId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredPhoneId() != rhs.getRequiredPhoneId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmPhoneTagBuff) {
        CFCrmPhoneTagBuff rhs = (CFCrmPhoneTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredPhoneId() != rhs.getRequiredPhoneId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:com.azaptree.services.security.commands.subjectRepository.AddSubjectCredential.java

public AddSubjectCredential(final HashServiceConfiguration hashServiceConfig) {
    Assert.notNull(hashServiceConfig, "hashServiceConfig is required");

    hashService = hashServiceConfig.getHashService();
    hashServiceId = hashServiceConfig.getEntityId();

    setValidator(new CommandContextValidatorSupport() {

        @Override/*from   w  w  w .j  av  a 2 s .  co m*/
        protected void checkInput(final Command command, final Context ctx) {
            final UUID subjectId = get(ctx, SUBJECT_ID);
            if (!subjectDAO.exists(subjectId)) {
                throw new UnknownSubjectException(subjectId.toString());
            }

            final Credential credential = get(ctx, CREDENTIAL);
            if (!securityCredentialsService.isCredentialSupported(credential.getName(),
                    credential.getCredential())) {
                throw new UnsupportedCredentialTypeException();
            }

            if (hashedCredentialDAO.existsForSubjectIdAndName(subjectId, credential.getName())) {
                throw new DuplicateCredentialException(credential.getName());
            }

            final UUID updatedBySubjectId = get(ctx, UPDATED_BY_SUBJECT_ID);
            if (updatedBySubjectId != null) {
                Assert.isTrue(!subjectId.equals(updatedBySubjectId), String.format(
                        "The updatedBy subject (%s) cannot be the same as the subject (%s) which we are adding the credential to",
                        subjectId, updatedBySubjectId));
                if (!subjectDAO.exists(updatedBySubjectId)) {
                    throw new UnknownSubjectException(
                            String.format("Subject for updatedBy does not exist: %s", updatedBySubjectId));
                }
            }

        }

        @Override
        protected void checkOutput(final Command command, final Context ctx) {
            // none required
        }

    });

    setInputKeys(SUBJECT_ID, CREDENTIAL, UPDATED_BY_SUBJECT_ID);
    setOutputKeys(HASHED_CREDENTIAL);
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAcc.CFAccAddressTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFAccAddressTagHPKey) {
        CFAccAddressTagHPKey rhs = (CFAccAddressTagHPKey) obj;
        {/* w  ww .  j  a  v a 2 s .  co  m*/
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccHPKey) {
        CFAccHPKey rhs = (CFAccHPKey) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        return (true);
    } else if (obj instanceof CFAccAddressTagPKey) {
        CFAccAddressTagPKey rhs = (CFAccAddressTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccAddressTagHBuff) {
        CFAccAddressTagHBuff rhs = (CFAccAddressTagHBuff) obj;
        {
            long lhsClusterId = getAuditClusterId();
            long rhsClusterId = rhs.getAuditClusterId();
            if (lhsClusterId != rhsClusterId) {
                return (false);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp != null) {
                if (rhsAuditStamp != null) {
                    if (!lhsAuditStamp.equals(rhsAuditStamp)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        {
            short lhsActionId = getAuditActionId();
            short rhsActionId = rhs.getAuditActionId();
            if (lhsActionId != rhsActionId) {
                return (false);
            }
        }
        {
            int lhsRevision = getRequiredRevision();
            int rhsRevision = rhs.getRequiredRevision();
            if (lhsRevision != rhsRevision) {
                return (false);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId != null) {
                if (rhsAuditSessionId != null) {
                    if (!lhsAuditSessionId.equals(rhsAuditSessionId)) {
                        return (false);
                    }
                } else {
                    return (false);
                }
            } else {
                return (false);
            }
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccAddressTagBuff) {
        CFAccAddressTagBuff rhs = (CFAccAddressTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}