/* (non-Javadoc)
@see nyla.solutions.core.util.Settings#getPropertyLong(java.lang.String, long)
507039
@Override
	public Long getPropertyLong(String key, long aDefault)
	{
		return getPropertyLong(key, Long.valueOf(aDefault));
	}
641072
public Long getAsLong(String key) {
        Object value = mValues.get(key);
        try {
            return value != null ? ((Number) value).longValue() : null;
        } catch (ClassCastException e) {
            if (value instanceof CharSequence) {
                try {
                    return Long.valueOf(value.toString());
                } catch (NumberFormatException e2) {
                    DLog.e(TAG, "Cannot parse Long value for " + value + " at key " + key);
                    return null;
                }
            } else {
                DLog.e(TAG, "Cannot cast value for " + key + " to a Long: " + value, e);
                return null;
            }
        }
    }
534081
public Long getLong(Map<String, Object> data, String name) {
    return get(data, name, Long.class);
  }
470877
public void setLongProperty( String key , long value )
    {
        settings.setProperty(key, String.valueOf(value));
    }
564995
public static Long getLongProperty(String property) {
        if (property == null) {
            return null;
        }
        Long propertyLong = null;
        try {
            propertyLong = Long.valueOf(property);
        } catch (NumberFormatException e) {
            LOG.warn("Cannot convert string value into number", e);
        }
        return propertyLong;
    }
894624
public Long getLong(String name) {
        //let it fail in the more general case where it isn't actually a number
        Number number = (Number) content.get(name);
        if (number == null) {
            return null;
        } else if (number instanceof Long) {
            return (Long) number;
        } else {
            return number.longValue(); //autoboxing to Long
        }
    }
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;
   }
1163641
public long getLong(String attribute, String namespace, long defaultValue) {
        String value = get(attribute, namespace);
        if (value == null) {
            return defaultValue;
        }
        return Long.parseLong(value);
    }
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;
        }
    }
430723
@Override
	public final void setLongProperty(String name, long value) throws JMSException
    {
        setProperty(name,Long.valueOf(value));
    }
1082974
public Long toLong() {
		Long value;
		value = Long.valueOf(this.isNeg ? Long.parseLong(this.param)*-1 : Long.parseLong(this.param));
		return value;
	}
765479
@Override
  public Long getIdPartAsLong() {
    String val = getIdPart();
    if (isBlank(val)) {
      return null;
    }
    return Long.parseLong(val);
  }
890637
public final Long getLong(final String pNm) throws ExceptionWithCode {
    if (this.longs != null && this.longs.keySet().contains(pNm)) {
      return this.longs.get(pNm);
    }
    if (this.idLongs != null && this.idLongs.keySet().contains(pNm)) {
      return this.idLongs.get(pNm);
    }
    throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER,
      "There is no field - " + pNm);
  }
595231
public long getLong(String key) throws JSONException {
        Object object = this.get(key);
        try {
            return object instanceof Number ? ((Number) object).longValue()
                    : Long.parseLong((String) object);
        } catch (Exception e) {
            throw new JSONException("JSONObject[" + quote(key)
                    + "] is not a long.");
        }
    }
720280
public long getLong(String key) throws LazyException{
		LazyNode token=getFieldToken(key);
		return token.getLongValue();
	}
367159
public long getLong(final String name, final long defaultValue) {
    if (containsKey(name)) {
      return Long.parseLong(get(name));
    } else {
      return defaultValue;
    }
  }
1236861
public long getLong(Enum<?> key, long defaultValue)
    {
        if (key == null)
        {
            return defaultValue;
        }

        return getLong(key.name(), defaultValue);
    }