Class MamaSubscriptionState


  • public class MamaSubscriptionState
    extends java.lang.Object
    This class is the java equivalent of the C subscription state enumeration.
    • Method Detail

      • getValue

        public int getValue()
        Returns the integer representation of the subscription state.
        Returns:
        The state as an integer.
      • getSubscriptionState

        public static MamaSubscriptionState getSubscriptionState​(int state)
        This function converts the integer state value to a corresponding MamaSubscriptionState object.
        Parameters:
        state - The state.
        Returns:
        To return the MamaSusbscriptionState instance.
      • parseSubscriptionState

        public static MamaSubscriptionState parseSubscriptionState​(java.lang.String state)
        This function will return the subscription state corresponding to the supplied string. Note that if the string is not recognised then MAMA_SUBSCRIPTION_UNKNOWN will be returned.
        Parameters:
        state -
        Returns:
        The corresponding state object or MAMA_SUBSCRIPTION_UNKNOWN if the string isn't recognised.
      • toString

        public static java.lang.String toString​(int state)
        This function returns the string representation of the state.
        Parameters:
        state - The state.
        Returns:
        The string representation.
      • toString

        public static java.lang.String toString​(MamaSubscriptionState state)
        This function returns the string representation of the state.
        Parameters:
        state - The state.
        Returns:
        The string representation.
      • toString

        public java.lang.String toString()
        This function returns the string representation of the member state.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation.