SnapshotDifference
final class SnapshotDifference
Package: dev.joid.test.snapshot · Module: tool-testkit · Source: SnapshotDifference.java
How much two snapshot images differ: the number of pixels beyond the tolerance and the largest channel difference.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
SnapshotDifference | of(int pixels, int maximum) factory | Returns a difference of that many pixels with that largest channel difference. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
int | getPixels() | Returns the number of pixels whose largest channel difference is above the tolerance; every pixel when the sizes differ. |
int | getMaximum() | Returns the largest channel difference found, from 0 to 255. |
Creation details
Section titled “Creation details”SnapshotDifference of(int pixels, int maximum) factory
Returns a difference of that many pixels with that largest channel difference.
Method details
Section titled “Method details”getPixels
Section titled “getPixels”int getPixels()
Returns the number of pixels whose largest channel difference is above the tolerance; every pixel when the sizes differ.
getMaximum
Section titled “getMaximum”int getMaximum()
Returns the largest channel difference found, from 0 to 255.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
