Package org.refcodes.net
Enum PortRange
- java.lang.Object
-
- java.lang.Enum<PortRange>
-
- org.refcodes.net.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>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DYNAMIC_PORTS
LINUX_DYNAMIC_PORTS
REGISTERED_PORTS
SYSTEM_PORTS
-
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.
-
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
getMinValue
public java.lang.Integer getMinValue()
- Specified by:
getMinValue
in interfaceorg.refcodes.mixin.MinValueAccessor<java.lang.Integer>
-
getMaxValue
public java.lang.Integer getMaxValue()
- Specified by:
getMaxValue
in interfaceorg.refcodes.mixin.MaxValueAccessor<java.lang.Integer>
-
-