Biblioteca Java - Rev 31

Subversion Repositories:
Rev:
package com.linkscreens.activemq.protocol;

/**
 * Created by evo2 on 7/29/2015.
 */

public enum ProtocolType {
    ECHO ("client:echo"),
    DUMMY ("client:dummy");

    private final String name;

    private ProtocolType(String s) {
        name = s;
    }

    public boolean equalsName(String otherName) {
        return (otherName == null) ? false : name.equals(otherName);
    }

    public String toString() {
        return this.name;
    }
}