Class SimpleSanitizer

  • All Implemented Interfaces:
    ValueSanitizer

    public class SimpleSanitizer
    extends AbstractSimpleSanitizer
    Simple value sanitizer which returns a declared sanitized value when specified condition returns true.
    Since:
    1.3.0
    • Field Detail

      • sanitizedValue

        protected final Object sanitizedValue
        The sanitized value.
        Since:
        1.3.0
    • Constructor Detail

      • SimpleSanitizer

        public SimpleSanitizer​(boolean valid,
                               Object sanitizedValue)
        Constructs a new instance.
        Parameters:
        valid - true whether parameter current value is valid, otherwise false.
        sanitizedValue - the sanitized value which will be returned by AbstractSimpleSanitizer.sanitize(Object) method.
        Since:
        1.3.0