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 aFeatureModuleDescriptor
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptorType
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefeatureModuleSupplier
record component.(package private) FeatureModule<T>
final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 aFeatureModuleDescriptor
record class.- Parameters:
descriptorType
- the value for thedescriptorType
record componentfeatureModuleSupplier
- the value for thefeatureModuleSupplier
record 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 thedescriptorType
record component.- Returns:
- the value of the
descriptorType
record component
-
featureModuleSupplier
Returns the value of thefeatureModuleSupplier
record component.- Returns:
- the value of the
featureModuleSupplier
record component
-