org.apache.directory.server.dns.messages
Class MessageType
java.lang.Object
org.apache.directory.server.dns.messages.MessageType
- All Implemented Interfaces:
- java.lang.Comparable
- public final class MessageType
- extends java.lang.Object
- implements java.lang.Comparable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
QUERY
public static final MessageType QUERY
- Enumeration elements are constructed once upon class loading.
Order of appearance here determines the order of compareTo.
RESPONSE
public static final MessageType RESPONSE
VALUES
public static final java.util.List VALUES
toString
public java.lang.String toString()
compareTo
public int compareTo(java.lang.Object that)
- Specified by:
compareTo
in interface java.lang.Comparable
getTypeByOrdinal
public static MessageType getTypeByOrdinal(int type)
getOrdinal
public int getOrdinal()