com.applitools.eyes.fluent.SimpleRegionByRectangle 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 Show documentation
Show all versions of eyes-sdk-core-java3 Show documentation
Applitools Eyes SDK base for Java
The newest version!
package com.applitools.eyes.fluent;
import com.applitools.eyes.EyesScreenshot;
import com.applitools.eyes.Region;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
public class SimpleRegionByRectangle implements GetSimpleRegion {
private final Region region;
public SimpleRegionByRectangle(Region region) {
this.region = region;
}
@JsonProperty("region")
public Region getRegion() {
return region;
}
@Override
public List getRegions( EyesScreenshot screenshot) {
List value = new ArrayList<>();
value.add(this.region);
return value;
}
}