Interface Builder<T>

Type Parameters:
T - 建造对象类型
All Superinterfaces:
Serializable
All Known Implementing Classes:
CompareBuilder, DifferentBuilder, EqualsBuilder, ExecutorBuilder, GenericBuilder, HashCodeBuilder, MapBuilder, Percent.Builder, ReflectionBuilder, ReflectionToStringBuilder, SSLContextBuilder, TextBuilder, ThreadBuilder, ToStringBuilder, TreeBuilder

public interface Builder<T> extends Serializable
建造者模式
Since:
Java 17+
Author:
Kimi Liu
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    包装唯一键(System.identityHashCode())使对象只有和自己 equals 此对象用于消除小概率下System.identityHashCode()产生的ID重复问题
  • Method Details

    • build

      T build()
      包装唯一键(System.identityHashCode())使对象只有和自己 equals 此对象用于消除小概率下System.identityHashCode()产生的ID重复问题
      Returns:
      被构建的对象