Returns value of the parameter passed to the highlighter.
@param {String} name				Name of the parameter.
@param {Object} defaultValue		Default value.
@return {Object}					Returns found value or default value otherwise.
483406
function(name, defaultValue)
        {
            var result = this.params[name];
            return toBoolean(result == null ? defaultValue : result);
        }
722881
public synchronized String getGlobalProperty(String name, String defaultValue) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.entry(tc, "getGlobalProperty", new Object[] { name, defaultValue });

        String value = getGlobalProperty(name);
        if (value == null) {
            value = defaultValue;
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.exit(tc, "getGlobalProperty -> " + value);
        return value;
    }
1047927
public String getAsString(final String name, final String defaultValue) {
        return AtsdUtil.getPropertyStringValue(fullName(name), clientProperties, defaultValue);
    }
447789
public String getString(String name, String defaultVal){
        if(this.configuration.containsKey(name)){
            return this.configuration.getString(name);
        } else {
            return defaultVal;
        }
    }
304506
function(key, defaultValue){
    var c = getCache(this.ns)

    if(arguments.length === 0) {
      return c
    }

    return c[key] !== undefined ? c[key] : defaultValue
  }
1032572
public String getParameterAsString(String name, String defaultValue) {
		return defaultValue(blankToNull(getParameter(name)), defaultValue);
	}
1364108
public boolean getBooleanValue(String name, boolean defaultValue) {

        String value = getValue(name);

        if (value == null) {
            return defaultValue;
        } else {
            return value.equals("true");
        }
    }
1323269
public <R> R getHeader(String name, R defaultValue) {
        if (headers().contains(name)) {
            return getHeader(name);
        } else {
            return defaultValue;
        }
    }
1163869
private String getValueOrDefault(HttpServletRequest req, String paramName, String defaultValue) {
		final String value = req.getParameter(paramName);
		return StringUtils.isEmpty(value) ? defaultValue : value;
	}
672565
public Boolean getParameterBoolean(String name, Boolean defaultValue)
   {
      String value = getParameterValue(name, null);

      if (value != null)
      {
         return new Boolean(value);
      }
      return defaultValue;
   }
325197
public function getParam($name, $default = null)
    {
        $value = array_get($this->params, $name);
        if ($value === null) {
            if ($default === null) {
                throw new InvalidValueException(['`:param` param is not exists in $configure->params', 'param' => $name]);
            } else {
                return $default;
            }
        } else {
            return $value;
        }
    }
220238
public Object getFieldDefaultValue(TypeElement type, String name) {
		return this.defaultValues.computeIfAbsent(type, this::resolveFieldValues)
				.get(name);
	}
936102
public String getParameterValue(String name, String defaultValue)
   {
      String value = defaultValue;
      SimpleParameterEntry p = parameters.get(name);
      if (p != null)
      {
         value = p.getValue();
      }
      return value;
   }
1298451
public static DefaultValueFunction defaultValue(String fieldName, Object defaultValue) {

		Assert.hasText(fieldName, "Fieldname must not be 'empty' for default value operation.");
		Assert.notNull(defaultValue, "DefaultValue must not be 'null'.");

		return defaultValue(new SimpleField(fieldName), defaultValue);
	}
678887
public Long getParameterLong(String name, Long defaultValue)
   {
      String value = getParameterValue(name, null);

      if (value != null)
      {
         try
         {
            return StringNumberParser.parseLong(value);
         }
         catch (NumberFormatException e)
         {
            if (LOG.isTraceEnabled())
            {
               LOG.trace("An exception occurred: " + e.getMessage());
            }
         }
      }
      return defaultValue;
   }
996452
public String getString(String name, String defaultValue) {
      return getAs(name, String.class, defaultValue);
   }
156250
public static function getSetting( string $name, $defaultValue = null )
	{
		return self::isSettingSet($name)
			? self::$settings[$name]
			: $defaultValue;
	}