Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module : java.base - Package : java.util.concurrent
Version documentée : Java SE 17

Classe « ConcurrentHashMap<K, V> »

Informations générales

Héritage

java.lang.Object
    java.util.AbstractMap
        java.util.concurrent.ConcurrentHashMap

Interfaces implémentées

java.io.Serializable
java.util.concurrent.ConcurrentMap<K, V>

Définition

public class ConcurrentHashMap<K, V> extends java.util.AbstractMap<K, V>
implements java.io.Serializable,
java.util.concurrent.ConcurrentMap<K, V>

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription
ConcurrentHashMap()
ConcurrentHashMap( int initialCapacity )
ConcurrentHashMap( Map<? extends K, ? extends V> m )
ConcurrentHashMap( int initialCapacity, float loadFactor )
ConcurrentHashMap( int initialCapacity, float loadFactor, int concurrencyLevel )

Liste des propriétés (getters/setters)

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W
public boolean empty R/-

Propriétés héritées de la classe java.util.AbstractMap

empty

Propriétés héritées de la classe java.lang.Object

class

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes concrètes Méthodes abstraites Méthodes dépréciées
QualificateursType de retourPrototype de la méthodeDescription
public void clear()
public V compute( K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction )
public V computeIfAbsent( K key, Function<? super K, ? extends V> mappingFunction )
public V computeIfPresent( K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction )
public boolean contains( Object value )
public boolean containsKey( Object key )
public boolean containsValue( Object value )
public Enumeration<V> elements()
public Set<java.util.Map$Entry<K, V>> entrySet()
public boolean equals( Object o )
public void forEach( long parallelismThreshold, BiConsumer<? super K, ? super V> action )
public <U> void forEach( long parallelismThreshold, BiFunction<? super K, ? super V, ? extends U> transformer, Consumer<? super U> action )
public void forEach( BiConsumer<? super K, ? super V> action )
public void forEachEntry( long parallelismThreshold, Consumer<? super java.util.Map$Entry<K, V>> action )
public <U> void forEachEntry( long parallelismThreshold, Function<java.util.Map$Entry<K, V>, ? extends U> transformer, Consumer<? super U> action )
public void forEachKey( long parallelismThreshold, Consumer<? super K> action )
public <U> void forEachKey( long parallelismThreshold, Function<? super K, ? extends U> transformer, Consumer<? super U> action )
public <U> void forEachValue( long parallelismThreshold, Function<? super V, ? extends U> transformer, Consumer<? super U> action )
public void forEachValue( long parallelismThreshold, Consumer<? super V> action )
public V get( Object key )
public V getOrDefault( Object arg0, V arg1 )
public int hashCode()
public boolean isEmpty()
public Enumeration<K> keys()
public KeySetView<K, V> keySet( V arg0 )
public KeySetView<K, V> keySet()
public long mappingCount()
public V merge( K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction )
public static <K> KeySetView<K, java.lang.Boolean> newKeySet( int initialCapacity )
public static <K> KeySetView<K, java.lang.Boolean> newKeySet()
public V put( K arg0, V arg1 )
public void putAll( Map<? extends K, ? extends V> m )
public V putIfAbsent( K arg0, V arg1 )
public <U> U reduce( long parallelismThreshold, BiFunction<? super K, ? super V, ? extends U> transformer, BiFunction<? super U, ? super U, ? extends U> reducer )
public Entry<K, V> reduceEntries( long parallelismThreshold, BiFunction<java.util.Map$Entry<K, V>, java.util.Map$Entry<K, V>, ? extends java.util.Map$Entry<K, V>> reducer )
public <U> U reduceEntries( long parallelismThreshold, Function<java.util.Map$Entry<K, V>, ? extends U> transformer, BiFunction<? super U, ? super U, ? extends U> reducer )
public double reduceEntriesToDouble( long parallelismThreshold, ToDoubleFunction<java.util.Map$Entry<K, V>> transformer, double basis, DoubleBinaryOperator reducer )
public int reduceEntriesToInt( long parallelismThreshold, ToIntFunction<java.util.Map$Entry<K, V>> transformer, int basis, IntBinaryOperator reducer )
public long reduceEntriesToLong( long parallelismThreshold, ToLongFunction<java.util.Map$Entry<K, V>> transformer, long basis, LongBinaryOperator reducer )
public K reduceKeys( long parallelismThreshold, BiFunction<? super K, ? super K, ? extends K> reducer )
public <U> U reduceKeys( long parallelismThreshold, Function<? super K, ? extends U> transformer, BiFunction<? super U, ? super U, ? extends U> reducer )
public double reduceKeysToDouble( long parallelismThreshold, ToDoubleFunction<? super K> transformer, double basis, DoubleBinaryOperator reducer )
public int reduceKeysToInt( long parallelismThreshold, ToIntFunction<? super K> transformer, int basis, IntBinaryOperator reducer )
public long reduceKeysToLong( long parallelismThreshold, ToLongFunction<? super K> transformer, long basis, LongBinaryOperator reducer )
public double reduceToDouble( long parallelismThreshold, ToDoubleBiFunction<? super K, ? super V> transformer, double basis, DoubleBinaryOperator reducer )
public int reduceToInt( long parallelismThreshold, ToIntBiFunction<? super K, ? super V> transformer, int basis, IntBinaryOperator reducer )
public long reduceToLong( long parallelismThreshold, ToLongBiFunction<? super K, ? super V> transformer, long basis, LongBinaryOperator reducer )
public V reduceValues( long parallelismThreshold, BiFunction<? super V, ? super V, ? extends V> reducer )
public <U> U reduceValues( long parallelismThreshold, Function<? super V, ? extends U> transformer, BiFunction<? super U, ? super U, ? extends U> reducer )
public double reduceValuesToDouble( long parallelismThreshold, ToDoubleFunction<? super V> transformer, double basis, DoubleBinaryOperator reducer )
public int reduceValuesToInt( long parallelismThreshold, ToIntFunction<? super V> transformer, int basis, IntBinaryOperator reducer )
public long reduceValuesToLong( long parallelismThreshold, ToLongFunction<? super V> transformer, long basis, LongBinaryOperator reducer )
public V remove( Object key )
public boolean remove( Object key, Object value )
public V replace( K arg0, V arg1 )
public boolean replace( K key, V oldValue, V newValue )
public void replaceAll( BiFunction<? super K, ? super V, ? extends V> function )
public <U> U search( long parallelismThreshold, BiFunction<? super K, ? super V, ? extends U> searchFunction )
public <U> U searchEntries( long parallelismThreshold, Function<java.util.Map$Entry<K, V>, ? extends U> searchFunction )
public <U> U searchKeys( long parallelismThreshold, Function<? super K, ? extends U> searchFunction )
public <U> U searchValues( long parallelismThreshold, Function<? super V, ? extends U> searchFunction )
public int size()
public String toString()
public Collection<V> values()

Méthodes héritées de la classe java.util.AbstractMap

clear, clone, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values

Méthodes héritées de la classe java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait