Biblioteca Java - Rev 31
Subversion Repositories:
(root)/Frameworks and Technologies/TestActiveMQ2/src/main/java/com/linkscreens/activemq/protocol/ProtocolType.java
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;
}
}
/**
* 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;
}
}