Biblioteca Java - Blame information for rev 31
Subversion Repositories:
(root)/Frameworks and Technologies/TestActiveMQ2/src/main/java/com/linkscreens/activemq/protocol/ProtocolType.java
Rev | Author | Line No. | Line |
---|---|---|---|
31 | mihai | 1 | package com.linkscreens.activemq.protocol; |
2 | |||
3 | /** | ||
4 | * Created by evo2 on 7/29/2015. | ||
5 | */ | ||
6 | public enum ProtocolType { | ||
7 | ECHO ("client:echo"), | ||
8 | DUMMY ("client:dummy"); | ||
9 | |||
10 | private final String name; | ||
11 | |||
12 | private ProtocolType(String s) { | ||
13 | name = s; | ||
14 | } | ||
15 | |||
16 | public boolean equalsName(String otherName) { | ||
17 | return (otherName == null) ? false : name.equals(otherName); | ||
18 | } | ||
19 | |||
20 | public String toString() { | ||
21 | return this.name; | ||
22 | } | ||
23 | } |