Record Class FeatureModuleDescriptor<T extends FeatureDescriptor>
java.lang.Object
java.lang.Record
eu.rarogsoftware.rarog.platform.core.plugins.FeatureModuleDescriptor<T>
- All Implemented Interfaces:
FeatureDescriptor
public record FeatureModuleDescriptor<T extends FeatureDescriptor>(Class<T extends FeatureDescriptor> descriptorType, Supplier<FeatureModule<T extends FeatureDescriptor>> featureModuleSupplier)
extends Record
implements FeatureDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureModuleDescriptor(Class<T> descriptorType, Supplier<FeatureModule<T>> featureModuleSupplier) Creates an instance of aFeatureModuleDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptorTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeatureModuleSupplierrecord component.(package private) FeatureModule<T>final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface eu.rarogsoftware.rarog.platform.api.plugins.FeatureDescriptor
getName
-
Constructor Details
-
FeatureModuleDescriptor
public FeatureModuleDescriptor(Class<T> descriptorType, Supplier<FeatureModule<T>> featureModuleSupplier) Creates an instance of aFeatureModuleDescriptorrecord class.- Parameters:
descriptorType- the value for thedescriptorTyperecord componentfeatureModuleSupplier- the value for thefeatureModuleSupplierrecord component
-
-
Method Details
-
getModule
FeatureModule<T> getModule() -
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). -
descriptorType
Returns the value of thedescriptorTyperecord component.- Returns:
- the value of the
descriptorTyperecord component
-
featureModuleSupplier
Returns the value of thefeatureModuleSupplierrecord component.- Returns:
- the value of the
featureModuleSupplierrecord component
-