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

com.github.fridujo.rabbitmq.mock.ReceiverPointer Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package com.github.fridujo.rabbitmq.mock;

import java.util.Objects;

public class ReceiverPointer {
    final Type type;
    final String name;

    public ReceiverPointer(Type type, String name) {
        this.type = type;
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ReceiverPointer that = (ReceiverPointer) o;
        return type == that.type &&
            Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(type, name);
    }

    public enum Type {
        QUEUE, EXCHANGE
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy