Class IntegerValueConverter

  • All Implemented Interfaces:
    joptsimple.ValueConverter<Integer>

    public class IntegerValueConverter
    extends Object
    implements joptsimple.ValueConverter<Integer>
    Converts option value from String to Integer and makes sure the value exceeds given minimal threshold.
    • Constructor Detail

      • IntegerValueConverter

        public IntegerValueConverter​(int minValue)
    • Method Detail

      • convert

        public Integer convert​(String value)
        Specified by:
        convert in interface joptsimple.ValueConverter<Integer>
      • valueType

        public Class<? extends Integer> valueType()
        Specified by:
        valueType in interface joptsimple.ValueConverter<Integer>
      • valuePattern

        public String valuePattern()
        Specified by:
        valuePattern in interface joptsimple.ValueConverter<Integer>