Package fr.skytasul.reflection.mappings
Record Class RealMappings
java.lang.Object
java.lang.Record
fr.skytasul.reflection.mappings.RealMappings
- All Implemented Interfaces:
Mappings
public record RealMappings(@NotNull Collection<RealMappings.RealClassMapping> classes)
extends Record
implements Mappings
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface fr.skytasul.reflection.mappings.Mappings
Mappings.ClassMapping, Mappings.MappedObject -
Constructor Summary
ConstructorsConstructorDescriptionRealMappings(@NotNull Collection<RealMappings.RealClassMapping> classes) Creates an instance of aRealMappingsrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<RealMappings.RealClassMapping> classes()Returns the value of theclassesrecord component.final booleanIndicates whether some other object is "equal to" this one.Collection<? extends Mappings.ClassMapping> final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RealMappings
Creates an instance of aRealMappingsrecord class.- Parameters:
classes- the value for theclassesrecord component
-
-
Method Details
-
getClasses
- Specified by:
getClassesin interfaceMappings
-
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). -
classes
Returns the value of theclassesrecord component.- Returns:
- the value of the
classesrecord component
-