Record Class GoalStuck
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.constraints.GoalStuck
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat()Returns the value of theatrecord component.book()Returns the value of thebookrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.missing()Returns the value of themissingrecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.intv()Returns the value of thevrecord component.longversion()Returns the value of theversionrecord component.
-
Field Details
-
VERSION
public static final int VERSION- See Also:
-
-
Constructor Details
-
GoalStuck
public GoalStuck(int v, String book, long version, String unit, String key, String missing, Instant at) Creates an instance of aGoalStuckrecord class.- Parameters:
v- the value for thevrecord componentbook- the value for thebookrecord componentversion- the value for theversionrecord componentunit- the value for theunitrecord componentkey- the value for thekeyrecord componentmissing- the value for themissingrecord componentat- the value for theatrecord 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. -
v
public int v()Returns the value of thevrecord component.- Returns:
- the value of the
vrecord component
-
book
Returns the value of thebookrecord component.- Returns:
- the value of the
bookrecord component
-
version
public long version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
missing
Returns the value of themissingrecord component.- Returns:
- the value of the
missingrecord component
-
at
Returns the value of theatrecord component.- Returns:
- the value of the
atrecord component
-