Class SMSAddress.Nature

  • All Implemented Interfaces:
    DataObject, Immutable, Serializable
    Enclosing class:
    SMSAddress

    public static final class SMSAddress.Nature
    extends NamedInteger
    Nature of Address indicator constants.

    The API offered by this class is as if the type were specified in ASN.1 as follows.

     Nature ::= ENUMERATED {
         UNKNOWN          (0),
         INTERNATIONAL    (1),
         NATIONAL         (2),
         NETWORK_SPECIFIC (3),
         SUBSCRIBER       (4),
         ALPHANUMERIC     (5),
         ABBREVIATED      (6),
         RESERVED_7       (7)
     }
    @extendible -- to be like 7-bit Nature values specified for other types
    See Also:
    Serialized Form
    • Field Detail

      • _UNKNOWN

        public static final int _UNKNOWN
        Nature of Address indicator value corresponding to unknown.
        See Also:
        Constant Field Values
      • _INTERNATIONAL

        public static final int _INTERNATIONAL
        Nature of Address indicator value corresponding to an international number.
        See Also:
        Constant Field Values
      • _NATIONAL

        public static final int _NATIONAL
        Nature of Address indicator value corresponding to a national (significant) number.
        See Also:
        Constant Field Values
      • _NETWORK_SPECIFIC

        public static final int _NETWORK_SPECIFIC
        Nature of Address indicator value corresponding to a network-specific number.
        See Also:
        Constant Field Values
      • _SUBSCRIBER

        public static final int _SUBSCRIBER
        Nature of Address indicator value corresponding to a subscriber number.
        See Also:
        Constant Field Values
      • _ALPHANUMERIC

        public static final int _ALPHANUMERIC
        Nature of Address indicator value corresponding to an alphanumeric (GSM 7-bit) number.
        See Also:
        Constant Field Values
      • _ABBREVIATED

        public static final int _ABBREVIATED
        Nature of Address indicator value corresponding to an abbreviated number.
        See Also:
        Constant Field Values
      • _RESERVED_7

        public static final int _RESERVED_7
        Nature of Address indicator value corresponding to a reserved indicator value (7).
        See Also:
        Constant Field Values
      • UNKNOWN

        public static final SMSAddress.Nature UNKNOWN
        Nature of Address indicator value corresponding to unknown.
      • INTERNATIONAL

        public static final SMSAddress.Nature INTERNATIONAL
        Nature of Address indicator value corresponding to an international number.
      • NATIONAL

        public static final SMSAddress.Nature NATIONAL
        Nature of Address indicator value corresponding to a national (significant) number.
      • NETWORK_SPECIFIC

        public static final SMSAddress.Nature NETWORK_SPECIFIC
        Nature of Address indicator value corresponding to a network-specific number.
      • SUBSCRIBER

        public static final SMSAddress.Nature SUBSCRIBER
        Nature of Address indicator value corresponding to a subscriber number.
      • ALPHANUMERIC

        public static final SMSAddress.Nature ALPHANUMERIC
        Nature of Address indicator value corresponding to an alphanumeric (GSM 7-bit) number.
      • ABBREVIATED

        public static final SMSAddress.Nature ABBREVIATED
        Nature of Address indicator value corresponding to an abbreviated number.
      • RESERVED_7

        public static final SMSAddress.Nature RESERVED_7
        Nature of Address indicator value corresponding to a reserved indicator value (7).
      • MIN_VALUE

        public static final int MIN_VALUE
        Minimum value that a Nature instance may take (0).
        See Also:
        Constant Field Values
      • MAX_VALUE

        public static final int MAX_VALUE
        Maximum value that a Nature instance may take (7).
        See Also:
        Constant Field Values
    • Method Detail

      • fromValue

        public static SMSAddress.Nature fromValue​(int value)
        Returns a Nature for a particular integer value.
        Returns:
        any known instance, or a new object
      • namedValues

        public static SMSAddress.Nature[] namedValues()
        Returns an array containing all of Nature's named numbers.
        Returns:
        a new Nature[]