public final class

IntegerValidator

extends Object
implements Validator
java.lang.Object
   ↳ com.atlassian.validation.IntegerValidator

Class Overview

Validates that a string is an integer, optionally within a specific range of values.

Summary

Public Constructors
IntegerValidator()
IntegerValidator(int minValue, int maxValue)
Public Methods
Validator.Result validate(String value)
Validate the given string to see if it passes and if not, why not.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.validation.Validator

Public Constructors

public IntegerValidator ()

public IntegerValidator (int minValue, int maxValue)

Public Methods

public Validator.Result validate (String value)

Validate the given string to see if it passes and if not, why not.

Parameters
value all validation input is a String.
Returns
  • A result that contains access to the details of the validation outcome.