Record Class ExtensionInfoFile
java.lang.Object
java.lang.Record
org.teleight.teleightbots.extensions.annotation.ExtensionInfoFile
-
Constructor Summary
ConstructorsConstructorDescriptionExtensionInfoFile(String name, String version, String parentBot, String mainClass) Creates an instance of aExtensionInfoFilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static @NotNull ExtensionInfoFilefromAnnotation(@NotNull ExtensionInfo extensionInfoFile, @NotNull String mainClass) final inthashCode()Returns a hash code value for this object.Returns the value of themainClassrecord component.name()Returns the value of thenamerecord component.Returns the value of theparentBotrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ExtensionInfoFile
Creates an instance of aExtensionInfoFilerecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord componentparentBot- the value for theparentBotrecord componentmainClass- the value for themainClassrecord component
-
-
Method Details
-
fromAnnotation
@NotNull public static @NotNull ExtensionInfoFile fromAnnotation(@NotNull @NotNull ExtensionInfo extensionInfoFile, @NotNull @NotNull String mainClass) -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
parentBot
Returns the value of theparentBotrecord component.- Returns:
- the value of the
parentBotrecord component
-
mainClass
Returns the value of themainClassrecord component.- Returns:
- the value of the
mainClassrecord component
-