Class LocationNumber.Nature

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

    public static final class LocationNumber.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 {
         ... ,
         SUBSCRIBER                            (1),
         UNKNOWN                               (2),
         NATIONAL                              (3),
         INTERNATIONAL                         (4),
         ...
     }
    See Also:
    Serialized Form
    • Field Detail

      • _SUBSCRIBER

        public static final int _SUBSCRIBER
        Reserved for subscriber number (national use).
        See Also:
        Constant Field Values
      • _UNKNOWN

        public static final int _UNKNOWN
        Reserved for unknown (national use).
        See Also:
        Constant Field Values
      • _NATIONAL

        public static final int _NATIONAL
        National (significant) number (national use).
        See Also:
        Constant Field Values
      • _INTERNATIONAL

        public static final int _INTERNATIONAL
        International number.
        See Also:
        Constant Field Values
      • SUBSCRIBER

        public static final LocationNumber.Nature SUBSCRIBER
        Reserved for subscriber number (national use).
      • NATIONAL

        public static final LocationNumber.Nature NATIONAL
        National (significant) number (national use).
      • 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 (127).
        See Also:
        Constant Field Values
    • Method Detail

      • fromValue

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

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