You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2017/02/05 20:23:41 UTC

[jira] [Resolved] (VALIDATOR-236) Optional ranges for xxxRange validations

     [ https://issues.apache.org/jira/browse/VALIDATOR-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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: https://issues.apache.org/jira/browse/VALIDATOR-236
>             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
(v6.3.15#6346)