Class IntArrayProperty

java.lang.Object
org.jppf.utils.configuration.AbstractJPPFProperty<int[]>
org.jppf.utils.configuration.IntArrayProperty
All Implemented Interfaces:
Serializable, JPPFProperty<int[]>

public class IntArrayProperty extends AbstractJPPFProperty<int[]>
Implementation of JPPFProperty for properties whose value is an array of space-separated ints.
Since:
6.0
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • IntArrayProperty

      public IntArrayProperty(String name, int[] defaultValue, String... aliases)
      Initialize this property with the specified name and default value.
      Parameters:
      name - the name of this property.
      defaultValue - the default value of this property, used when the property is not defined.
      aliases - other names that may be given to this property (e.g. older names from previous versions).
  • Method Details

    • valueOf

      public int[] valueOf(String value)
      Description copied from interface: JPPFProperty
      Convert the specified value into the type of values handled by this property.
      Parameters:
      value - the property value to convert.
      Returns:
      the value converted to the type of this property.
    • toString

      public String toString(int[] value)
      Description copied from interface: JPPFProperty
      Convert the specified value to a string.
      Specified by:
      toString in interface JPPFProperty<int[]>
      Overrides:
      toString in class AbstractJPPFProperty<int[]>
      Parameters:
      value - the property value to convert.
      Returns:
      a String representation of the value.
    • valueType

      public Class<int[]> valueType()
      Description copied from interface: JPPFProperty
      Return the class object for the type of values of this property.
      Returns:
      a Class instance.