Interface InstanceFactory<T>

Type Parameters:
T - The type of the class to instantiate.
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 InstanceFactory<T>
Functional interface for instantiating classes of some generic type T. The user can provide an `InstanceFactory` for types that EqualsVerifier is unable to instantiate without help. This becomes useful in Java 26 where JEP 500 ("final means final") is active.
Since:
4.4
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Values values)
     
  • Method Details