Interface Replacer<T>

Type Parameters:
T - 被替换操作的类型
All Known Implementing Classes:
Html4Escape, Html4Unescape, LookupReplacer, NumericEntityUnescaper, ReplacerChain, StrReplacer, XmlEscape, XmlUnescape
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 Replacer<T>
替换器
通过实现此接口完成指定类型对象的替换操作,替换后的目标类型依旧为指定类型
Since:
4.1.5
Author:
looly
  • Method Summary

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

    • replace

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