Package dev.morphia.critter.parser
Record Class PropertyFinder.Properties
java.lang.Object
java.lang.Record
dev.morphia.critter.parser.PropertyFinder.Properties
- Record Components:
models- the property model generatorsclasses- at build time, the classesaccessorsregisters by name: the accessors and the woven classes, which include the entity. Empty at runtime.accessors- emits the accessors
- Enclosing class:
- PropertyFinder
public static record PropertyFinder.Properties(List<PropertyModelGenerator> models, Map<String,byte[]> classes, Runnable accessors)
extends Record
An entity's property model generators and the accessors they use, which aren't defined or registered until
accessors is run. The accessors' bytecode is already generated and everything that can rule out generating the
entity has been checked, so a failed entity leaves nothing behind.-
Constructor Summary
ConstructorsConstructorDescriptionProperties(List<PropertyModelGenerator> models, Map<String, byte[]> classes, Runnable accessors) Creates an instance of aPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessorsrecord component.classes()Returns the value of theclassesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.List<PropertyModelGenerator>models()Returns the value of themodelsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
models
Returns the value of themodelsrecord component.- Returns:
- the value of the
modelsrecord component
-
classes
Returns the value of theclassesrecord component.- Returns:
- the value of the
classesrecord component
-
accessors
Returns the value of theaccessorsrecord component.- Returns:
- the value of the
accessorsrecord component
-