/* (non-Javadoc)
@see net.crowmagnumb.util.ResourceReader#getInteger(java.lang.String, java.lang.Integer)
353228
@Override
    public Integer getInteger( final String     key,
                               final Integer    defaultValue )
    {
        return formatInteger( key, getFormattedPropValue( key ), defaultValue );
    }
1318648
public Integer getInteger (int index) {
        Long value = getLong (index);
        return (value != null) ? value.intValue () : null;
    }
112624
private Integer getIntegerField(JsonNode json, String fieldName) {
        if (!json.has(fieldName)) {
            return null;
        }
        return json.get(fieldName).intValue();
    }
1207824
public Integer getInteger(Class<?> cls, String key)
   {
	   return getInteger(cls.getName()+"."+key);
	   
   }
1256744
@Override
    public int getInt( final String    key,
                       final int       defaultValue )
    {
        return formatInt( key, getFormattedPropValue( key ), defaultValue );
    }
938068
protected int readInteger(final String intString, final int min, final int max) {
        return Math.max(Math.min(Integer.parseInt(intString), max), min);
    }
245868
public static Integer getInteger(Config config, String path) {
        try {
            Object obj = config.getAnyRef(path);
            return obj instanceof Number ? ((Number) obj).intValue() : null;
        } catch (ConfigException.Missing | ConfigException.WrongType e) {
            if (e instanceof ConfigException.WrongType) {
                LOGGER.warn(e.getMessage(), e);
            }
            return null;
        }
    }
982367
public static Integer getInteger(Object object) {
        try {
            if(object instanceof Integer)
                return (Integer) object;

            if(object instanceof String)
                return Integer.valueOf((String) object);
        } catch(NumberFormatException  nfe) {
        }
        return null;
    }
968282
public Integer getValueInteger(String label) {
        PrimitiveObject o = getPrimitiveObject(VALUE, label, ObjectUtil.INTEGER, "Integer");
        if (o == null) {
            return null;
        }
        return (Integer) o.getObject();
    }
1045283
public Integer getInteger(Map<String, Object> data, String name) {
    return get(data, name, Integer.class);
  }
667383
public Integer getIntegerFrom(JsonValue json) {
    if (json.isNumber()) {
      return json.asInt();
    } else {
      return Integer.valueOf(json.asString());
    }
  }
1350989
@Override
    public Integer getInteger(String key) {
        Integer r = super.getInteger(key);
        if (r == null) {
            LOGGER.error(ERROR_NOSUCHKEY + key + "\"");
            return null;
        }
        return r;
    }
1104279
public static Integer toInteger(final StringValue stringValue)
	{
		Integer value = null;
		if (isNotNullOrEmpty(stringValue))
		{
			try
			{
				value = stringValue.toInteger();
			}
			catch (final StringValueConversionException e)
			{
				LOGGER.error("Error by converting the given StringValue.", e);
			}
		}
		return value;
	}
192135
public final int getInteger(String attribute, String... path)
    {
        try
        {
            return Integer.parseInt(getNodeString(attribute, path));
        }
        catch (final NumberFormatException exception)
        {
            throw new LionEngineException(exception, media);
        }
    }
1337981
public Integer getInt (String name) {
        try {
            return Integer.parseInt(get(name, "").trim());
        } catch (Exception e) {
            return null;
        }
    }
1167273
@Override
    public Integer getInteger( final String    key )
        throws
            UtilException
    {
        return formatInteger( key, getRequiredPropValue( key ) );
    }
1258145
public int getInteger(String key, int defaultValue) {
        int result = defaultValue;
        try {
            if (key != null)
                result = getInteger(key);
        } catch (MissingResourceException e) {
        }
        return result;
    }