public boolean equals()

in mantis-common/src/main/java/io/mantisrx/common/network/ServerSlotManager.java [194:219]


        public boolean equals(Object obj) {
            if (this == obj)
                return true;
            if (obj == null)
                return false;
            if (getClass() != obj.getClass())
                return false;
            SlotAssignmentManager other = (SlotAssignmentManager) obj;
            if (connectionIdToSlotNumberMap == null) {
                if (other.connectionIdToSlotNumberMap != null)
                    return false;
            } else if (!connectionIdToSlotNumberMap
                    .equals(other.connectionIdToSlotNumberMap))
                return false;
            if (consumerJobId == null) {
                if (other.consumerJobId != null)
                    return false;
            } else if (!consumerJobId.equals(other.consumerJobId))
                return false;
            if (nodeList == null) {
                if (other.nodeList != null)
                    return false;
            } else if (!nodeList.equals(other.nodeList))
                return false;
            return true;
        }