/** * Returns the value to which this map maps the specified key. Returns * <code>null</code> if the map contains no mapping for this key. A return * value of <code>null</code> does not <i>necessarily</i> indicate that the * map contains no mapping for the key; it's also possible that the map * explicitly maps the key to <code>null</code>. The <code>containsKey</code> * operation may be used to distinguish these two cases. * * @param key key whose associated value is to be returned. * @return the value to which this map maps the specified key. */ @Override public Object get(Object key) { if (key instanceof Number) { return get(((Number) key).intValue()); } return null; }
/** * Returns the value to which this map maps the specified key. Returns * <code>null</code> if the map contains no mapping for this key. A return * value of <code>null</code> does not <i>necessarily</i> indicate that the * map contains no mapping for the key; it's also possible that the map * explicitly maps the key to <code>null</code>. The <code>containsKey</code> * operation may be used to distinguish these two cases. * * @param key key whose associated value is to be returned. * @return the value to which this map maps the specified key. */ @Override public Object get(final Object key) { if (key instanceof Number) { return get(((Number) key).intValue()); } return null; }
/** * Returns the value to which this map maps the specified key. Returns * <code>null</code> if the map contains no mapping for this key. A return * value of <code>null</code> does not <i>necessarily</i> indicate that the * map contains no mapping for the key; it's also possible that the map * explicitly maps the key to <code>null</code>. The <code>containsKey</code> * operation may be used to distinguish these two cases. * * @param key key whose associated value is to be returned. * @return the value to which this map maps the specified key. */ @Override public Object get(final Object key) { if (key instanceof Number) { return get(((Number) key).intValue()); } return null; }
/** * Returns the value to which this map maps the specified key. Returns * <code>null</code> if the map contains no mapping for this key. A return * value of <code>null</code> does not <i>necessarily</i> indicate that the * map contains no mapping for the key; it's also possible that the map * explicitly maps the key to <code>null</code>. The <code>containsKey</code> * operation may be used to distinguish these two cases. * * @param key key whose associated value is to be returned. * @return the value to which this map maps the specified key. */ @Override public Object get(Object key) { if (key instanceof Number) { return get(((Number) key).intValue()); } return null; }