Interface Replacer<T>

Type Parameters:
T - 被替换操作的类型
All Known Implementing Classes:
LookupReplacer, PrivacyReplacer, ReplacerChain, TextReplacer

public interface Replacer<T>
替换器 通过实现此接口完成指定类型对象的替换操作,替换后的目标类型依旧为指定类型
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    替换指定类型为目标类型
  • Method Details

    • replace

      T replace(T t)
      替换指定类型为目标类型
      Parameters:
      t - 被替换的对象
      Returns:
      替代后的对象