protected Object convertIndexToMapKey(final Getter getter, final Object index) {
    """
	Converts <b>Map</b> index to key type. If conversion fails, original value will be returned.
    """
		Class indexType = null;

		if (getter != null) {
			indexType = getter.getGetterRawKeyComponentType();
		}

		// check if set
		if (indexType == null) {
			indexType = Object.class;	// marker for no generic type
		}

		if (indexType == Object.class) {
			return index;
		}

		try {
			return convertType(index, indexType);
		} catch (Exception ignore) {
			return index;
		}
	}
protected Object convertIndexToMapKey(final Getter getter, final Object index) {
		Class indexType = null;

		if (getter != null) {
			indexType = getter.getGetterRawKeyComponentType();
		}

		// check if set
		if (indexType == null) {
			indexType = Object.class;	// marker for no generic type
		}

		if (indexType == Object.class) {
			return index;
		}

		try {
			return convertType(index, indexType);
		} catch (Exception ignore) {
			return index;
		}
	}
protected Object convertIndexToMapKey ( final Getter getter , final Object index ) { Class indexType = null ; if ( getter != null ) { indexType = getter . getGetterRawKeyComponentType ( ) ; } // check if set if ( indexType == null ) { indexType = Object . class ; // marker for no generic type } if ( indexType == Object . class ) { return index ; } try { return convertType ( index , indexType ) ; } catch ( Exception ignore ) { return index ; } }
Converts <b>Map</b> index to key type. If conversion fails, original value will be returned.
Converts <b > Map< / b > index to key type . If conversion fails original value will be returned .