public abstract class RecordSupport extends Object
| Constructor and Description |
|---|
RecordSupport() |
| Modifier and Type | Method and Description |
|---|---|
abstract Constructor<?> |
getCanonicalRecordConstructor(Class<?> clazz)
Returns the canonical record constructor that is present in every record class and sets all
record components.
|
abstract Method[] |
getRecordComponentAccessorMethods(Class<?> clazz)
Returns the
RecordComponent.getAccessor method for each of the
Class.getRecordComponents(). |
abstract Object[] |
getRecordComponents(Class<?> clazz)
Same as
Class.getRecordComponents(). |
abstract boolean |
isRecord(Class<?> clazz)
Same as
Class.isRecord(). |
static RecordSupport |
singleton() |
public static RecordSupport singleton()
public abstract boolean isRecord(Class<?> clazz)
Class.isRecord().public abstract Object[] getRecordComponents(Class<?> clazz)
Class.getRecordComponents().
Must only be called when RecordSupport.isRecord(java.lang.Class<?>) returns true.public abstract Method[] getRecordComponentAccessorMethods(Class<?> clazz)
RecordComponent.getAccessor method for each of the
Class.getRecordComponents().
Must only be called when RecordSupport.isRecord(java.lang.Class<?>) returns true.public abstract Constructor<?> getCanonicalRecordConstructor(Class<?> clazz)
RecordSupport.isRecord(java.lang.Class<?>) returns true.