@Immutable @ExperimentalApi public final class ComparisonSettings extends Object
ComparisonSettings can be merged with another
instance, which will result in the other instance 'single' fields overriding this instance's corresponding fields,
unless they were not set on the other instance at all. Collection fields are merged by combining collections from
both merged instances.
A family of short-hand methods is also available on this class (many of them starting with a with prefix) to
facilitate creating a new instance of settings overriding, or adding just one specific field from the original
instance. Those work in essence as if this instance was merged with another
instance of settings that had just that one particular field set.@Nonnull public static ComparisonSettings emptySettings()
null (not set) and the collection
fields are empty collections.ComparisonSettings.@Nonnull public Set<Resolution> getResolutions()
public boolean isReportingEnabled()
public boolean isIgnoreSingleLineDifferences()
public boolean isRefreshAfterResize()
@Nonnull public Iterable<Replacement> getReplacements()
@Nonnull public ComparisonSettings merge(ComparisonSettings that)
@Nonnull public ComparisonSettings withResolution(@Nonnull Resolution resolution)
@Nonnull public ComparisonSettings withResolutions(@Nonnull Resolution first, @Nonnull Resolution... more)
@Nonnull public ComparisonSettings withBaselineDirectory(@Nonnull File baselineDirectory)
@Nonnull public ComparisonSettings withReportingEnabled(@Nonnull File value)
@Nonnull public ComparisonSettings withReportingDisabled()
@Nonnull public ComparisonSettings ignoringSingleLineDifferences(boolean value)
@Nonnull public ComparisonSettings refreshingAfterResize(boolean refreshAfterResize)
@Nonnull public ComparisonSettings ignoringPart(@Nonnull PagePart part)
@Nonnull public ComparisonSettings withReplacement(@Nonnull Replacement replacement)
Copyright © 2015 Atlassian. All rights reserved.