Skip to content

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.

ReturnsSignatureSummary
SnapshotDifferenceof(int pixels, int maximum) factoryReturns a difference of that many pixels with that largest channel difference.

ReturnsSignatureSummary
intgetPixels()Returns the number of pixels whose largest channel difference is above the tolerance; every pixel when the sizes differ.
intgetMaximum()Returns the largest channel difference found, from 0 to 255.

SnapshotDifference of(int pixels, int maximum) factory

Returns a difference of that many pixels with that largest channel difference.

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.


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

Report a problem with this page