All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fitnesse.slim.converters.PrimitiveIntConverter Maven / Gradle / Ivy

There is a newer version: 20181217
Show newest version
package fitnesse.slim.converters;

public class PrimitiveIntConverter extends IntConverter {
  public static final Integer DEFAULT_VALUE = Integer.valueOf(0);

  @Override
  public Integer fromString(String arg) {
    Integer i = super.fromString(arg);
    return i != null ? i : DEFAULT_VALUE;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy