Class AbstractValidatorRange<V,​R>

    • Constructor Detail

      • AbstractValidatorRange

        public AbstractValidatorRange​(io.github.mmm.base.range.Range<R> range)
        The constructor.
        Parameters:
        range - is the Range the value has to be contained in.
    • Method Detail

      • getRange

        public io.github.mmm.base.range.Range<R> getRange()
        Returns:
        the Range to validate.
      • convertValue

        protected R convertValue​(V value)
        Converts the value to the type of the range.
        Parameters:
        value - is the value to convert.
        Returns:
        the converted value.
      • isLength

        protected boolean isLength()
        Returns:
        true if validating the lenght of the value, false otherwise.