Record Class EntityMetadata.Property
java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.EntityMetadata.Property
- Enclosing class:
EntityMetadata
public static record EntityMetadata.Property(String name, AccessibleObject member, Class<?> type, Type genericType, io.fluxzero.common.reflection.MemberInvoker reader)
extends Record
Cached property metadata with a compiled reader.
-
Constructor Summary
ConstructorsConstructorDescriptionProperty(String name, AccessibleObject member, Class<?> type, Type genericType, io.fluxzero.common.reflection.MemberInvoker reader) Creates an instance of aPropertyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegenericTyperecord component.final inthashCode()Returns a hash code value for this object.member()Returns the value of thememberrecord component.name()Returns the value of thenamerecord component.io.fluxzero.common.reflection.MemberInvokerreader()Returns the value of thereaderrecord component.final StringtoString()Returns a string representation of this record class.Class<?> type()Returns the value of thetyperecord component.
-
Constructor Details
-
Property
public Property(String name, AccessibleObject member, Class<?> type, Type genericType, io.fluxzero.common.reflection.MemberInvoker reader) Creates an instance of aPropertyrecord class.- Parameters:
name- the value for thenamerecord componentmember- the value for thememberrecord componenttype- the value for thetyperecord componentgenericType- the value for thegenericTyperecord componentreader- the value for thereaderrecord component
-
-
Method Details
-
read
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
member
Returns the value of thememberrecord component.- Returns:
- the value of the
memberrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
genericType
Returns the value of thegenericTyperecord component.- Returns:
- the value of the
genericTyperecord component
-
reader
public io.fluxzero.common.reflection.MemberInvoker reader()Returns the value of thereaderrecord component.- Returns:
- the value of the
readerrecord component
-