Package nokunami.floral_warfare.api
Record Class ActionInterval
java.lang.Object
java.lang.Record
nokunami.floral_warfare.api.ActionInterval
-
Constructor Summary
ConstructorsConstructorDescriptionActionInterval(int interval, int preAction, int postAction) Creates an instance of aActionIntervalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intinterval()Returns the value of theintervalrecord component.intReturns the value of thepostActionrecord component.intReturns the value of thepreActionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionInterval
public ActionInterval(int interval, int preAction, int postAction) Creates an instance of aActionIntervalrecord class.- Parameters:
interval- the value for theintervalrecord componentpreAction- the value for thepreActionrecord componentpostAction- the value for thepostActionrecord component
-
-
Method Details
-
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 with '=='. -
interval
public int interval()Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-
preAction
public int preAction()Returns the value of thepreActionrecord component.- Returns:
- the value of the
preActionrecord component
-
postAction
public int postAction()Returns the value of thepostActionrecord component.- Returns:
- the value of the
postActionrecord component
-