Interface Editor<T>

Type Parameters:
T - 被编辑对象类型

public interface Editor<T>
编辑器接口,常用于对于集合中的元素做统一编辑 此编辑器两个作用:
 1、如果返回值为null,表示此值被抛弃
 2、对对象做修改
 
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    edit(T t)
    修改过滤后的结果
  • Method Details

    • edit

      T edit(T t)
      修改过滤后的结果
      Parameters:
      t - 被过滤的对象
      Returns:
      修改后的对象, 如果被过滤返回null