net.sf.okapi.common

## Class StringSanitiser.IntegerParsingFilter

- java.lang.Object
- - net.sf.okapi.common.StringSanitiser.IntegerParsingFilter

- All Implemented Interfaces:
    Sanitiser.Filter<java.lang.String>
  Enclosing class:
    StringSanitiser

      public static final class StringSanitiser.IntegerParsingFilter
      extends java.lang.Object
      implements Sanitiser.Filter<java.lang.String>

  An integer parsing filter.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IntegerParsingFilter(java.lang.String errorMessageFormat)` Creates an integer parsing filter.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `apply(java.lang.String value)` Applies `Integer.valueOf(String)` to a provided value.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### IntegerParsingFilter

          public IntegerParsingFilter(java.lang.String errorMessageFormat)

      Creates an integer parsing filter.
      Parameters:
        `errorMessageFormat` - The error message format

  - ### Method Detail

    - #### apply

          public java.lang.String apply(java.lang.String value)

      Applies `Integer.valueOf(String)` to a provided value.
      Specified by:
        `apply` in interface `Sanitiser.Filter<java.lang.String>`
      Parameters:
        `value` - The value
      Returns:
        A parsed integer value as a string