/** * Creates a ReferenceEntry instead of a HashEntry. * * @param next the next entry in sequence * @param hashCode the hash code to use * @param key the key to store * @param value the value to store * @return the newly created entry */ public HashEntry<K, V> createEntry(HashEntry<K, V> next, int hashCode, K key, V value) { return new ReferenceEntry<K, V>(this, (ReferenceEntry<K, V>) next, hashCode, key, value); }
/** * Creates a ReferenceEntry instead of a HashEntry. * * @param next the next entry in sequence * @param hashCode the hash code to use * @param key the key to store * @param value the value to store * @return the newly created entry */ public HashEntry<K, V> createEntry(HashEntry<K, V> next, int hashCode, K key, V value) { return new ReferenceEntry<K, V>(this, (ReferenceEntry<K, V>) next, hashCode, key, value); }
/** * Creates a ReferenceEntry instead of a HashEntry. * * @param next the next entry in sequence * @param hashCode the hash code to use * @param key the key to store * @param value the value to store * @return the newly created entry */ public HashEntry<K, V> createEntry(HashEntry<K, V> next, int hashCode, K key, V value) { return new ReferenceEntry<K, V>(this, (ReferenceEntry<K, V>) next, hashCode, key, value); }