Record Class PluginManager.ConfigInstance
java.lang.Object
java.lang.Record
com.zenith.plugin.PluginManager.ConfigInstance
- Enclosing class:
PluginManager
public static record PluginManager.ConfigInstance(Object instance, Class<?> clazz, File file, ConfigSerializer serializer)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConfigInstance(Object instance, Class<?> clazz, File file, ConfigSerializer serializer) Creates an instance of aConfigInstancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> clazz()Returns the value of theclazzrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.instance()Returns the value of theinstancerecord component.Returns the value of theserializerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfigInstance
Creates an instance of aConfigInstancerecord class.- Parameters:
instance- the value for theinstancerecord componentclazz- the value for theclazzrecord componentfile- the value for thefilerecord componentserializer- the value for theserializerrecord component
-
-
Method Details
-
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). -
instance
Returns the value of theinstancerecord component.- Returns:
- the value of the
instancerecord component
-
clazz
Returns the value of theclazzrecord component.- Returns:
- the value of the
clazzrecord component
-
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
serializer
Returns the value of theserializerrecord component.- Returns:
- the value of the
serializerrecord component
-