Record Class ZombieBatch
java.lang.Object
java.lang.Record
xyz.stachel.zombiesutils.api.game.resources.waves.ZombieBatch
-
Constructor Summary
ConstructorsConstructorDescriptionZombieBatch(ZombieType type, int count) Creates an instance of aZombieBatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ZombieBatch
Creates an instance of aZombieBatchrecord class.- Parameters:
type- the value for thetyperecord componentcount- the value for thecountrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-