commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] [Resolved] (VALIDATOR-236) Optional ranges for xxxRange validations
Date Sun, 05 Feb 2017 20:23:41 GMT


Sebb resolved VALIDATOR-236.
    Resolution: Won't Fix

AFAICT it's not possible.

The isInRange() methods take a value which is of the same type so it cannot exceed the possible
bounds, so omitting both bounds would not make sense.

Whilst it would be possible to add other methods that omitted the max limit, it would not
be possible to also omit the min limit without using a different name, which rather negates
the purpose as far as I can tell.

> Optional ranges for xxxRange validations
> ----------------------------------------
>                 Key: VALIDATOR-236
>                 URL:
>             Project: Commons Validator
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 1.3.1 Release
>            Reporter: Paul Benedict
> If either the min or max is not provided, assume it is the min or max of the data type.

This message was sent by Atlassian JIRA

View raw message