Package org.jppf.net
Class PatternConfiguration
java.lang.Object
org.jppf.net.PatternConfiguration
Instances of this class represent the configuration parameters for a specific IP address pattern implementation.
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PatternConfigurationConfiguration for IPv4 address patterns.static final PatternConfigurationConfiguration for IPv6 address patterns. -
Constructor Summary
ConstructorsConstructorDescriptionPatternConfiguration(int nbComponents, int minValue, int maxValue, char compSeparator, String valuePrefix) Initialize this pattern configuration with the specified values. -
Method Summary
Modifier and TypeMethodDescriptionprotected charGet the separator for the components of an address.
-
Field Details
-
IPV4_CONFIGURATION
Configuration for IPv4 address patterns. -
IPV6_CONFIGURATION
Configuration for IPv6 address patterns.
-
-
Constructor Details
-
PatternConfiguration
public PatternConfiguration(int nbComponents, int minValue, int maxValue, char compSeparator, String valuePrefix) Initialize this pattern configuration with the specified values.- Parameters:
nbComponents- the number of components in the address.minValue- the minimum value of a component.maxValue- the maximum value of a component.compSeparator- the separator for the components of an address.valuePrefix- the prefix indicating in which base the numbers are represented, i.e. "" for decimal, "0X" for hexadecimal.
-
-
Method Details
-
getCompSeparator
protected char getCompSeparator()Get the separator for the components of an address.- Returns:
- the separator character.
-