Lines Matching defs:currentValue

199  * @param currentValue (String|Number) The current value.
206 ScalarComparator.compare = function (currentValue, storedValue, config) {
208 logger.message("StringComparator.compare:currentValue: " + JSON.stringify(currentValue));
217 if (nullOrUndefined(currentValue) || currentValue !== storedValue) {
220 } else if (!nullOrUndefined(currentValue)) {
231 * @param currentValue: {
246 ScreenComparator.compare = function (currentValue, storedValue, config) {
248 logger.message("ScreenComparator.compare:currentValue: " + JSON.stringify(currentValue));
253 if (nullOrUndefined(currentValue)) {
254 currentValue = {screenWidth: null, screenHeight: null, screenColourDepth: null};
261 ScalarComparator.compare(currentValue.screenWidth, storedValue.screenWidth, config),
262 ScalarComparator.compare(currentValue.screenHeight, storedValue.screenHeight, config),
263 ScalarComparator.compare(currentValue.screenColourDepth, storedValue.screenColourDepth, config)];
281 * @param currentValue: (String) The current value.
292 MultiValueComparator.compare = function (currentValue, storedValue, config) {
294 logger.message("MultiValueComparator.compare:currentValue: " + JSON.stringify(currentValue));
300 currentValues = splitAndTrim(currentValue, delimiter),
307 if (nullOrUndefined(storedValue) && !nullOrUndefined(currentValue)) {
353 * @param currentValue (String) The current value.
362 UserAgentComparator.compare = function (currentValue, storedValue, config) {
364 logger.message("UserAgentComparator.compare:currentValue: " + JSON.stringify(currentValue));
371 currentValue = nullOrUndefined(currentValue) ? null : currentValue.replace(/[\d\.]+/g, "").trim();
375 return ScalarComparator.compare(currentValue, storedValue, config);
381 * @param currentValue: {
395 GeolocationComparator.compare = function (currentValue, storedValue, config) {
397 logger.message("GeolocationComparator.compare:currentValue: " + JSON.stringify(currentValue));
404 if (undefinedLocation(currentValue) && undefinedLocation(storedValue)) {
407 if (undefinedLocation(currentValue) && !undefinedLocation(storedValue)) {
410 if (!undefinedLocation(currentValue) && undefinedLocation(storedValue)) {
416 var distance = calculateDistance(currentValue, storedValue);
419 logger.message("Distance between (" + currentValue.latitude + "," + currentValue.longitude + ") and (" +
672 currentValue,
686 currentValue = getValue(devicePrint, attributePaths[i]);
693 comparisonResult = attrConfig.comparator.compare(currentValue, storedValue, attrConfig.args);