Record Class ClassificationEvent
java.lang.Object
java.lang.Record
com.xpdustry.nohorny.client.ClassificationEvent
public record ClassificationEvent(com.xpdustry.nohorny.common.VirtualBuilding.Group<? extends com.xpdustry.nohorny.common.MindustryImage> group, com.xpdustry.nohorny.common.Rating rating, @Nullable com.xpdustry.nohorny.common.MindustryAuthor author)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionClassificationEvent(com.xpdustry.nohorny.common.VirtualBuilding.Group<? extends com.xpdustry.nohorny.common.MindustryImage> group, com.xpdustry.nohorny.common.Rating rating, @Nullable com.xpdustry.nohorny.common.MindustryAuthor author) Creates an instance of aClassificationEventrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable com.xpdustry.nohorny.common.MindustryAuthorauthor()Returns the value of theauthorrecord component.final booleanIndicates whether some other object is "equal to" this one.com.xpdustry.nohorny.common.VirtualBuilding.Group<? extends com.xpdustry.nohorny.common.MindustryImage> group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.com.xpdustry.nohorny.common.Ratingrating()Returns the value of theratingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClassificationEvent
public ClassificationEvent(com.xpdustry.nohorny.common.VirtualBuilding.Group<? extends com.xpdustry.nohorny.common.MindustryImage> group, com.xpdustry.nohorny.common.Rating rating, @Nullable com.xpdustry.nohorny.common.MindustryAuthor author) Creates an instance of aClassificationEventrecord class.- Parameters:
group- the value for thegrouprecord componentrating- the value for theratingrecord componentauthor- the value for theauthorrecord 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). -
group
public com.xpdustry.nohorny.common.VirtualBuilding.Group<? extends com.xpdustry.nohorny.common.MindustryImage> group()Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
rating
public com.xpdustry.nohorny.common.Rating rating()Returns the value of theratingrecord component.- Returns:
- the value of the
ratingrecord component
-
author
public @Nullable com.xpdustry.nohorny.common.MindustryAuthor author()Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-