package ie.omk.smpp;

/**
 * Enumeration of connection states.
 * @version $Id:$
 */
public enum ConnectionState {
    UNBOUND,
    BINDING,
    BOUND,
    UNBINDING,
}

@@ -115,24 +115,27 @@
 %0A    UNBOUND
+(0)
 ,%0A    BINDIN
@@ -139,34 +139,481 @@
 DING
+(1)
 ,%0A    
-BOUND,%0A    UNBINDING,
+UNBINDING(2),%0A    BOUND(3);%0A    %0A    private int state;%0A    %0A    private ConnectionState(int state) %7B%0A        this.state = state;%0A    %7D%0A    %0A    public int intValue() %7B%0A        return state;%0A    %7D%0A    %0A    public static final ConnectionState valueOf(int value) %7B%0A        ConnectionState%5B%5D states = ConnectionState.values();%0A        if (value %3E=0 && value %3C states.length) %7B%0A            return states%5Bvalue%5D;%0A        %7D else %7B%0A            return null;%0A        %7D%0A    %7D
 %0A%7D%0A

Add integer mappings for ConnectionState, for use with an AtomicInteger.