com.applitools.eyes.FixedScaleProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eyes-sdk-core-java3-jersey2x Show documentation
Show all versions of eyes-sdk-core-java3-jersey2x Show documentation
Applitools Eyes SDK base for Java
package com.applitools.eyes;
import com.applitools.utils.ArgumentGuard;
/**
* Scale provider based on a fixed scale ratio.
*/
public class FixedScaleProvider implements ScaleProvider {
private final double scaleRatio;
/**
*
* @param scaleRatio The scale ratio to use.
*/
public FixedScaleProvider(double scaleRatio) {
ArgumentGuard.greaterThanZero(scaleRatio, "scaleRatio");
this.scaleRatio = scaleRatio;
}
/**
*
* {@inheritDoc}
*/
public double getScaleRatio() {
return scaleRatio;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy