Interface FieldSanitizer<T>

Type Parameters:
T - the type of the field (e.g., String, LocalDate, BigDecimal)
All Known Implementing Classes:
CollapseWhitespaceSanitizer, ConfigurableFieldSanitizer, CreditCardMaskSanitizer, EmailAliasStripSanitizer, HtmlEscapeSanitizer, IBANMaskSanitizer, LowerCaseSanitizer, NullIfBlankSanitizer, PhoneE164Sanitizer, RemoveNonPrintableSanitizer, SafeFilenameSanitizer, SentenceCaseSanitizer, SlugifySanitizer, SSNMaskSanitizer, TitleCaseSanitizer, TrimSanitizer, TruncateSanitizer, UpperCaseSanitizer, UuidNormalizeSanitizer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FieldSanitizer<T>
Strategy interface for sanitizing a single field value.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable T
    sanitize(@Nullable T input)
    Apply sanitization to the input value.
  • Method Details

    • sanitize

      @Nullable T sanitize(@Nullable T input)
      Apply sanitization to the input value.
      Parameters:
      input - the raw value (maybe null)
      Returns:
      the sanitized value (maybe null)