Record Class Ignore
java.lang.Object
java.lang.Record
net.flectone.pulse.module.command.ignore.model.Ignore
-
Constructor Summary
ConstructorsConstructorDescriptionIgnore(int id, long date, int target) Creates an instance of aIgnorerecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongdate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.inttarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Ignore
public Ignore(int id, long date, int target) Creates an instance of aIgnorerecord class.- Parameters:
id- the value for theidrecord componentdate- the value for thedaterecord componenttarget- the value for thetargetrecord 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 with thecomparemethod from their corresponding wrapper classes. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
date
public long date()Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
target
public int target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-