Class CollectionHandler

java.lang.Object
cloud.opencode.base.string.desensitize.handler.CollectionHandler

public final class CollectionHandler extends Object
Collection Desensitize Handler - Handles desensitization of Collection fields. 集合脱敏处理器 - 处理集合字段的脱敏操作。

Features | 主要功能:

  • List desensitization - List脱敏
  • Set desensitization - Set脱敏

Usage Examples | 使用示例:

List<?> masked = CollectionHandler.handle(List.of("secret1", "secret2"));
// ["***", "***"]

Security | 安全性:

  • Thread-safe: Yes (stateless utility) - 线程安全: 是(无状态工具类)
  • Null-safe: Yes - 空值安全: 是
Since:
JDK 25, opencode-base-string V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Method Details

    • handle

      public static List<?> handle(List<?> list)
    • handle

      public static Set<?> handle(Set<?> set)