T - The data object class in question.public class Setters<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
names()
Returns the names of the represented setters.
|
static <T> Setters<T> |
of(Class<T> subjectClass)
Returns a view of the setters of a specific data object class.
|
BiConsumer<T,Object> |
setter(String name,
Class<?> type)
Returns the setter with the given name and property type as
BiConsumer, which accepts an instance
of the underlying type and the value intended for the property as a parameter. |
public static <T> Setters<T> of(Class<T> subjectClass)
Setters in this sense are all public instance methods that expect exactly one parameter, that
do not return a result (void or Void) or the instance in question itself (builder pattern),
that have not already been defined by Object and whose name is prefixed with "set".
T - The data object class in question.public final BiConsumer<T,Object> setter(String name, Class<?> type)
BiConsumer, which accepts an instance
of the underlying type and the value intended for the property as a parameter.NoSuchElementException - if no suitable setter can be found.Copyright © 2026 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.