Enum PppProtocolType

    • Method Detail

      • values

        public static PppProtocolType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PppProtocolType c : PppProtocolType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PppProtocolType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • lookup

        public static PppProtocolType lookup​(short code)
        Lookups for a PPP Protocol type.
        Parameters:
        code - The code for PPP protocol.
        Returns:
        The PPPProtocol type
      • code

        public short code()
        Returns code associated to the PPP protocol.
        Returns:
        The code for PPP protocol
      • type

        public String type()
        Returns the string representation of the PPP protocol.
        Returns:
        The PPP protocol string representation
      • control

        public boolean control()
        Checks if the PPP protocol is carrying control plane packets.
        Returns:
        True if the PPP protocol is for control plane packets, false otherwise