/* (non-Javadoc)
@see javax.jms.Message#setLongProperty(java.lang.String, long)
430723
@Override
	public final void setLongProperty(String name, long value) throws JMSException
    {
        setProperty(name,Long.valueOf(value));
    }
604570
public static long getLong(Properties config, String key, long defaultValue) {
		String val = config.getProperty(key);
		if (val == null) {
			return defaultValue;
		} else {
			try {
				return Long.parseLong(val);
			} catch (NumberFormatException nfe) {
				throw new IllegalArgumentException("Value for configuration key='" + key + "' is not set correctly. " +
						"Entered value='" + val + "'. Default value='" + defaultValue + "'");
			}
		}
	}
1294760
@Override
    public Long fromString(Class targetClass, String s)
    {
        try
        {
            if (s == null)
            {
                if (log.isWarnEnabled())
                {
                    log.warn("String s is null.");
                }
                return null;
            }
            Long l = new Long(s);
            return l;
        }
        catch (NumberFormatException e)
        {
            log.error("Number format exception, Caused by {}.", e);
            throw new PropertyAccessException(e);
        }
    }
352743
public void set(long value) {
		if (this.value == value) return;
		long previous = this.value;
		this.value = value;
		event.fire(Long.valueOf(previous));
	}
929249
public void setValue (String name, long value)
    {
        Long oldValue = null;
        if (_prefs.get(name, null) != null || _props.getProperty(name) != null) {
            oldValue = Long.valueOf(_prefs.getLong(name, super.getValue(name, 0L)));
        }

        _prefs.putLong(name, value);
        _propsup.firePropertyChange(name, oldValue, Long.valueOf(value));
    }
1187793
public void setProperty(String key, String value)
  {
    if(key.equals(OutputKeys.METHOD))
    {
      setMethodDefaults(value);
    }
    
    if (key.startsWith(OutputPropertiesFactory.S_BUILTIN_OLD_EXTENSIONS_UNIVERSAL))
      key = OutputPropertiesFactory.S_BUILTIN_EXTENSIONS_UNIVERSAL
         + key.substring(OutputPropertiesFactory.S_BUILTIN_OLD_EXTENSIONS_UNIVERSAL_LEN);
    
    m_properties.put(key, value);
  }
447342
public long getLong(String property) {
    return getProperty(property, value -> {
      try {
        return Long.valueOf(value);
      } catch (NumberFormatException e) {
        throw new ConfigurationException("malformed property value: " + property + " must be a long");
      }
    });
  }
825138
public void setLong(String name, long value) throws UnsupportedEncodingException {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setLong", Long.valueOf(value));
    getBodyMap().put(name, Long.valueOf(value));
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setLong");
  }
370876
public void setLongAttribute(String name, Long value) {
		Attribute attribute = getAttributes().get(name);
		if (!(attribute instanceof LongAttribute)) {
			throw new IllegalStateException("Cannot set boolean value on attribute with different type, " +
					attribute.getClass().getName() + " setting value " + value);
		}
		((LongAttribute) attribute).setValue(value);
	}
504894
@Override
  public void setSystemProperty(String propertyName, String value) {
    if (Strings.isNullOrEmpty(propertyName)) {
      throw new IllegalArgumentException("Property name can't be empty.");
    }

    execute(
        "-selendroid-setAndroidOsSystemProperty",
        ImmutableMap.of(
            "propertyName", propertyName,
            "value", value));
  }
919346
public long getLong(final String name) {
    if (containsKey(name)) {
      return Long.parseLong(get(name));
    } else {
      throw new UndefinedPropertyException("Missing required property '" + name
          + "'");
    }
  }
94269
public static Long getPropertyLong(String key, Long aDefault)
	{
		return getSettings().getPropertyLong(key,aDefault);
	}
425710
public long getLongProperty( String key , long defaultValue )
    {
        String value = SystemTools.replaceSystemProperties(settings.getProperty(key));
        if (value == null)
            return defaultValue;
        try
        {
            return Long.parseLong(value);
        }
        catch (Exception e)
        {
            return defaultValue;
        }
    }
340493
public static long getLong ( Properties props, String key, long def ) {
        String s = props.getProperty(key);
        if ( s != null ) {
            try {
                def = Long.parseLong(s);
            }
            catch ( NumberFormatException nfe ) {
                log.error("Not a number", nfe);
            }
        }
        return def;
    }
1865
public void setLong(Long value) {
		this.checkNull(value);
		list.add(value);
		type.add(Long.class);
	}
466370
public static Long getLong(String propertyName, String envName, Long defaultValue) {
		checkEnvName(envName);
		Long propertyValue = NumberUtil.toLongObject(System.getProperty(propertyName), null);
		if (propertyValue != null) {
			return propertyValue;
		} else {
			propertyValue = NumberUtil.toLongObject(System.getenv(envName), null);
			return propertyValue != null ? propertyValue : defaultValue;
		}
	}
982556
public void setSystemMessageValue(long value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setSystemMessageValue", Long.valueOf(value));
        // Clear the cached MessageHandle
        cachedMessageHandle = null;
        // Set the value into the message itself
        jmo.setLongField(JsHdrAccess.SYSTEMMESSAGEVALUE, value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setSystemMessageValue");
    }