Contents
Record Class RegionReader.Result
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.buildertools.world.RegionReader.Result
- Enclosing class:
RegionReader
public static record RegionReader.Result(long visited, long skipped, boolean stoppedEarly)
extends Record
The outcome of a walk.
skipped counts positions whose storage was absent, which a caller
reports rather than counting as edited. It does not count positions the visitor itself rejected.-
Constructor Summary
ConstructorsConstructorDescriptionResult(long visited, long skipped, boolean stoppedEarly) Creates an instance of aResultrecord 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.booleanlongskipped()Returns the value of theskippedrecord component.booleanReturns the value of thestoppedEarlyrecord component.final StringtoString()Returns a string representation of this record class.longvisited()Returns the value of thevisitedrecord component.
-
Constructor Details
-
Result
public Result(long visited, long skipped, boolean stoppedEarly) Creates an instance of aResultrecord class.- Parameters:
visited- the value for thevisitedrecord componentskipped- the value for theskippedrecord componentstoppedEarly- the value for thestoppedEarlyrecord component
-
-
Method Details
-
hasSkipped
public boolean hasSkipped() -
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. -
visited
public long visited()Returns the value of thevisitedrecord component.- Returns:
- the value of the
visitedrecord component
-
skipped
public long skipped()Returns the value of theskippedrecord component.- Returns:
- the value of the
skippedrecord component
-
stoppedEarly
public boolean stoppedEarly()Returns the value of thestoppedEarlyrecord component.- Returns:
- the value of the
stoppedEarlyrecord component
-