All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dell.cpsd.common.rabbitmq.registration.notifier.model.MessageExchangeDto Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
/**
 * Copyright © 2017 Dell Inc. or its subsidiaries.  All Rights Reserved.
 * Dell EMC Confidential/Proprietary Information
 */

package com.dell.cpsd.common.rabbitmq.registration.notifier.model;

import java.util.ArrayList;
import java.util.List;

/**
 * 

* Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved. * Dell EMC Confidential/Proprietary Information *

* * @since SINCE-TBD */ public class MessageExchangeDto { private String name; private MessageDirectionType direction; private List bindings; public MessageExchangeDto(String name, MessageDirectionType direction) { this(name, direction, new ArrayList<>()); } public MessageExchangeDto(String name, MessageDirectionType direction, List bindings) { this.name = name; this.direction = direction; this.bindings = bindings; } public String getName() { return name; } public MessageDirectionType getDirection() { return direction; } public List getBindings() { return bindings; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessageExchangeDto that = (MessageExchangeDto) o; if (name != null ? !name.equals(that.name) : that.name != null) { return false; } if (direction != that.direction) { return false; } return bindings != null ? bindings.equals(that.bindings) : that.bindings == null; } @Override public int hashCode() { int result = name != null ? name.hashCode() : 0; result = 31 * result + (direction != null ? direction.hashCode() : 0); result = 31 * result + (bindings != null ? bindings.hashCode() : 0); return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy