Enum PortRange

  • All Implemented Interfaces:
    Serializable, Comparable<Integer>, org.refcodes.mixin.MaxValueAccessor<Integer>, org.refcodes.mixin.MinValueAccessor<Integer>, org.refcodes.structure.Range<Integer>


    public enum PortRange
    extends Enum<PortRange>
    implements org.refcodes.structure.Range<Integer>
    Port range definitions as of RFC 6335 ("https://tools.ietf.org/html/rfc6335")
    • Enum Constant Detail

      • SYSTEM_PORTS

        public static final PortRange SYSTEM_PORTS
      • REGISTERED_PORTS

        public static final PortRange REGISTERED_PORTS
      • DYNAMIC_PORTS

        public static final PortRange DYNAMIC_PORTS
      • LINUX_DYNAMIC_PORTS

        public static final PortRange LINUX_DYNAMIC_PORTS
    • Method Detail

      • values

        public static PortRange[] 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 (PortRange c : PortRange.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PortRange 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
      • getMinValue

        public Integer getMinValue​()
        Specified by:
        getMinValue in interface org.refcodes.mixin.MinValueAccessor<Integer>
      • getMaxValue

        public Integer getMaxValue​()
        Specified by:
        getMaxValue in interface org.refcodes.mixin.MaxValueAccessor<Integer>