All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fonedynamics.MessageDirection Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.fonedynamics;

/** 
 Represents the direction of a message.
*/
public enum MessageDirection
{
    /** 
     The message is an outgoing message.
    */
    Transmit,
    /** 
     The message is an incoming message.
    */
    Receive;

    /**
     * The size
     */
    public static final int SIZE = java.lang.Integer.SIZE;

    /**
     * Returns int value for given enum
     * @return int value for given enum
     */
    public int getValue()
    {
        return this.ordinal();
    }

    /**
     * Returns MessageDirection enum for given string
     * @param value The int value
     * @return the enum
     */
    public static MessageDirection forValue(int value)
    {
        return values()[value];
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy