/** * retrieves the value for <tt>key</tt> * * @param key an <code>Object</code> value * @return the value of <tt>key</tt> or null if no such mapping exists. */ @SuppressWarnings({"unchecked"}) public V get(Object key) { int index = index(key); return index < 0 ? null : _values[index]; }
@SuppressWarnings({"unchecked"}) public boolean remove(Object o) { try { return removeElement((E) o); } catch (ClassCastException ex) { return false; } }
/** * retrieves the value for <tt>key</tt> * * @param key an <code>Object</code> value * @return the value of <tt>key</tt> or null if no such mapping exists. */ @SuppressWarnings({"unchecked"}) public V get(Object key) { int index = index(key); return index < 0 ? null : _values[index]; }
/** * retrieves the value for <tt>key</tt> * * @param key an <code>Object</code> value * @return the value of <tt>key</tt> or null if no such mapping exists. */ @SuppressWarnings({"unchecked"}) public V get(Object key) { int index = index(key); return index < 0 ? null : _values[index]; }
/** * retrieves the value for <tt>key</tt> * * @param key an <code>Object</code> value * @return the value of <tt>key</tt> or null if no such mapping exists. */ @Override public V get(Object key) { int index = index(key); return index < 0 ? null : _values[index]; }
@SuppressWarnings({"unchecked"}) public boolean remove(Object o) { try { return removeElement((E) o); } catch (ClassCastException ex) { return false; } }
@SuppressWarnings({"unchecked"}) public boolean remove(Object o) { try { return removeElement((E) o); } catch (ClassCastException ex) { return false; } }
@Override @SuppressWarnings({"unchecked"}) public boolean remove(Object o) { try { return removeElement((E) o); } catch (ClassCastException ex) { return false; } }
@SuppressWarnings({"unchecked"}) public boolean remove( Object o ) { try { return removeElement( (E) o ); } catch( ClassCastException ex ) { return false; } }
/** * retrieves the value for <tt>key</tt> * * @param key an <code>Object</code> value * @return the value of <tt>key</tt> or null if no such mapping exists. */ @SuppressWarnings({"unchecked"}) public V get( Object key ) { int index = index( key ); if ( index < 0 || ! equals( _set[index], key ) ) { return null; } return _values[index]; }