Record Class GuiScreenshotDiff.Result
java.lang.Object
java.lang.Record
com.render.api.gui.testing.GuiScreenshotDiff.Result
- Enclosing class:
GuiScreenshotDiff
public static record GuiScreenshotDiff.Result(boolean matches, double mismatchRatio, int maximumChannelDelta, int width, int height)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(boolean matches, double mismatchRatio, int maximumChannelDelta, int width, int height) 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.intheight()Returns the value of theheightrecord component.booleanmatches()Returns the value of thematchesrecord component.intReturns the value of themaximumChannelDeltarecord component.doubleReturns the value of themismatchRatiorecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Result
public Result(boolean matches, double mismatchRatio, int maximumChannelDelta, int width, int height) Creates an instance of aResultrecord class.- Parameters:
matches- the value for thematchesrecord componentmismatchRatio- the value for themismatchRatiorecord componentmaximumChannelDelta- the value for themaximumChannelDeltarecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord 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. -
matches
public boolean matches()Returns the value of thematchesrecord component.- Returns:
- the value of the
matchesrecord component
-
mismatchRatio
public double mismatchRatio()Returns the value of themismatchRatiorecord component.- Returns:
- the value of the
mismatchRatiorecord component
-
maximumChannelDelta
public int maximumChannelDelta()Returns the value of themaximumChannelDeltarecord component.- Returns:
- the value of the
maximumChannelDeltarecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-