Module org.snmp4j

Interface Address

    • Method Detail

      • isValid

        boolean isValid()
        Checks whether this Address is a valid transport address.
        Returns:
        true if the address is valid, false otherwise.
      • parseAddress

        boolean parseAddress​(java.lang.String address)
        Parses the address from the supplied string representation.
        Parameters:
        address - a String representation of this address.
        Returns:
        true if address could be successfully parsed and has been assigned to this address object, false otherwise.
      • setValue

        void setValue​(java.lang.String address)
        Sets the address value from the supplied String. The string must match the format required for the Address instance implementing this interface. Otherwise an IllegalArgumentException runtime exception is thrown.
        Specified by:
        setValue in interface AssignableFromString
        Parameters:
        address - an address String.
        Since:
        1.7