Package org.jppf.net

Class PatternConfiguration

java.lang.Object
org.jppf.net.PatternConfiguration

public final class PatternConfiguration extends Object
Instances of this class represent the configuration parameters for a specific IP address pattern implementation.
Author:
Laurent Cohen
  • Field Details

    • IPV4_CONFIGURATION

      public static final PatternConfiguration IPV4_CONFIGURATION
      Configuration for IPv4 address patterns.
    • IPV6_CONFIGURATION

      public static final PatternConfiguration 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.