@Override protected Entry<K, V> newEntry(int hash, K key, V value) { @SuppressWarnings("unchecked") Entry<K, V> entry = (Entry<K, V>)entryEClass.getEPackage().getEFactoryInstance().create(entryEClass); entry.setHash(hash); entry.setKey(key); entry.setValue(value); return entry; }
@Override protected Entry<K, V> newEntry(int hash, K key, V value) { @SuppressWarnings("unchecked") Entry<K, V> entry = (Entry<K, V>)entryEClass.getEPackage().getEFactoryInstance().create(entryEClass); entry.setHash(hash); entry.setKey(key); entry.setValue(value); return entry; }
/** * Sets the value of the entry, and returns the former value. * The value is {@link #validateValue validated}. * @param entry the entry. * @param value the value. * @return the former value, or <code>null</code>. */ protected V putEntry(Entry<K, V> entry, V value) { return entry.setValue(value); }