Package net.orbyfied.j8.util.builder
Class Constructor<T,B extends Builder>
java.lang.Object
net.orbyfied.j8.util.builder.Constructor<T,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TConstructs a new instance of type T with the information provided by the builder.final Constructor<T,B> static <T,B extends Builder>
Constructor<T,B> takeBuilder(Class<T> tClass) Creates a constructor which passes the builder instance to an instance constructor of the class T.boolean
-
Constructor Details
-
Constructor
-
-
Method Details
-
takeBuilder
Creates a constructor which passes the builder instance to an instance constructor of the class T.- Type Parameters:
T- The target instance type.B- The builder type.- Parameters:
tClass- The runtime type of T.- Returns:
- The constructor instance.
-
construct
Constructs a new instance of type T with the information provided by the builder.- Parameters:
builder- The builder.- Returns:
- The instance.
-
onlyIf
-
test
-