程序包 cn.godmao.core

接口 IReplacer<T>

类型参数:
T - 被替换操作的类型
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface IReplacer<T>
替换器
通过实现此接口完成指定类型对象的替换操作,替换后的目标类型依旧为指定类型
  • 方法概要

    修饰符和类型
    方法
    说明
    替换指定类型为目标类型
  • 方法详细资料

    • replace

      T replace(T t)
      替换指定类型为目标类型
      参数:
      t - 被替换的对象
      返回:
      替代后的对象