Class IntListParameter

  • All Implemented Interfaces:
    Parameter<int[]>

    public class IntListParameter
    extends ListParameter<IntListParameter,​int[]>
    Parameter class for a parameter specifying a list of integer values.
    Since:
    0.1
    Author:
    Elke Achtert, Erich Schubert
    • Constructor Detail

      • IntListParameter

        public IntListParameter​(OptionID optionID)
        Constructs an integer list parameter
        Parameters:
        optionID - the unique id of this parameter
    • Method Detail

      • getValueAsString

        public java.lang.String getValueAsString()
        Description copied from interface: Parameter
        Get the value as string. May return null
        Returns:
        Value as string
      • getSyntax

        public java.lang.String getSyntax()
        Returns a string representation of the parameter's type.
        Returns:
        "<int_1,...,int_n>"
      • grab

        public boolean grab​(Parameterization config,
                            java.util.function.Consumer<int[]> consumer)
        Get the parameter.
        Parameters:
        config - Parameterization
        consumer - Output consumer
        Returns:
        true if valid