Enum PortRange

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

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

      • Nested classes/interfaces inherited from interface org.refcodes.mixin.MaxValueAccessor

        org.refcodes.mixin.MaxValueAccessor.MaxValueBuilder<V extends java.lang.Object,B extends org.refcodes.mixin.MaxValueAccessor.MaxValueBuilder<V,B>>, org.refcodes.mixin.MaxValueAccessor.MaxValueMutator<V extends java.lang.Object>, org.refcodes.mixin.MaxValueAccessor.MaxValueProperty<V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface org.refcodes.mixin.MinValueAccessor

        org.refcodes.mixin.MinValueAccessor.MinValueBuilder<V extends java.lang.Object,B extends org.refcodes.mixin.MinValueAccessor.MinValueBuilder<V,B>>, org.refcodes.mixin.MinValueAccessor.MinValueMutator<V extends java.lang.Object>, org.refcodes.mixin.MinValueAccessor.MinValueProperty<V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface org.refcodes.structure.Range

        org.refcodes.structure.Range.RangeBuilder<V extends java.lang.Number & java.lang.Comparable<V>>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getMaxValue()
      java.lang.Integer getMinValue()
      static PortRange valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static PortRange[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.refcodes.structure.Range

        isMember
    • 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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getMinValue

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

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