Lines Matching refs:ComparisonResult

102 // ComparisonResult
105 * Constructs an instance of a ComparisonResult with the given penalty points.
111 function ComparisonResult() {
134 ComparisonResult.ZERO_PENALTY_POINTS = new ComparisonResult(0);
141 ComparisonResult.isSuccessful = function(comparisonResult) {
151 ComparisonResult.additionalInfoInCurrentValue = function(comparisonResult) {
158 ComparisonResult.compare = function(first, second) {
175 * Amalgamates the given ComparisonResult into this ComparisonResult.
177 * @param comparisonResult The ComparisonResult to include.
179 ComparisonResult.prototype.addComparisonResult = function(comparisonResult) {
191 ComparisonResult.prototype.isSuccessful = function() {
196 * Compares two simple objects (String|Number) and if they are equal then returns a ComparisonResult with zero
197 * penalty points assigned, otherwise returns a ComparisonResult with the given number of penalty points assigned.
204 * @return ComparisonResult.
213 return ComparisonResult.ZERO_PENALTY_POINTS;
218 return new ComparisonResult(config.penaltyPoints);
221 return new ComparisonResult(true);
224 return ComparisonResult.ZERO_PENALTY_POINTS;
228 * Compares two screens and if they are equal then returns a ComparisonResult with zero penalty points assigned,
229 * otherwise returns a ComparisonResult with the given number of penalty points assigned.
244 * @return ComparisonResult
265 if (all(comparisonResults, ComparisonResult.isSuccessful)) {
266 return new ComparisonResult(any(comparisonResults, ComparisonResult.additionalInfoInCurrentValue));
268 return new ComparisonResult(config.penaltyPoints);
290 * @return ComparisonResult
308 return new ComparisonResult(true);
317 return ComparisonResult.ZERO_PENALTY_POINTS;
322 return ComparisonResult.ZERO_PENALTY_POINTS;
329 return new ComparisonResult(config.penaltyPoints);
337 return new ComparisonResult(config.penaltyPoints);
346 return new ComparisonResult(true);
350 * Compares two User Agent Strings and if they are equal then returns a ComparisonResult with zero penalty
351 * points assigned, otherwise returns a ComparisonResult with the given number of penalty points assigned.
360 * @return A ComparisonResult.
393 * @return ComparisonResult
405 return ComparisonResult.ZERO_PENALTY_POINTS;
408 return new ComparisonResult(config.penaltyPoints);
411 return new ComparisonResult(true);
425 return ComparisonResult.ZERO_PENALTY_POINTS;
432 return new ComparisonResult(true);
437 return new ComparisonResult(config.penaltyPoints);
683 aggregatedComparisonResult = new ComparisonResult();
691 comparisonResult = new ComparisonResult(attrConfig.penaltyPoints);
722 return ComparisonResult.compare(a.key, b.key);