Record Class PathResult
java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.PathResult
- Record Components:
found- whether a path was foundpathLength- number of tiles in the pathpath- ordered list of world-coordinate tiles from start to destination
-
Constructor Summary
ConstructorsConstructorDescriptionPathResult(boolean found, int pathLength, List<int[]> path) Creates an instance of aPathResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfound()Returns the value of thefoundrecord component.final inthashCode()Returns a hash code value for this object.List<int[]> path()Returns the value of thepathrecord component.intReturns the value of thepathLengthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PathResult
Creates an instance of aPathResultrecord class.- Parameters:
found- the value for thefoundrecord componentpathLength- the value for thepathLengthrecord componentpath- the value for thepathrecord 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. -
found
-
pathLength
public int pathLength()Returns the value of thepathLengthrecord component.- Returns:
- the value of the
pathLengthrecord component
-
path
-