Sha256: b59c4b67547a09a7a4f70df9fcfc3f9b898993ab88635f82c03d2e07685d101a

Contents?: true

Size: 1.18 KB

Versions: 150

Compression:

Stored size: 1.18 KB

Contents

package org.jruby.ext.thread_safe.jsr166e;

import java.util.Map;
import java.util.Set;

public interface ConcurrentHashMap<K, V> {
    /** Interface describing a function of one argument */
    public interface Fun<A,T> { T apply(A a); }
    /** Interface describing a function of two arguments */
    public interface BiFun<A,B,T> { T apply(A a, B b); }

    public V get(K key);
    public V put(K key, V value);
    public V putIfAbsent(K key, V value);
    public V computeIfAbsent(K key, Fun<? super K, ? extends V> mf);
    public V computeIfPresent(K key, BiFun<? super K, ? super V, ? extends V> mf);
    public V compute(K key, BiFun<? super K, ? super V, ? extends V> mf);
    public V merge(K key, V value, BiFun<? super V, ? super V, ? extends V> mf);
    public boolean replace(K key, V oldVal, V newVal);
    public V replace(K key, V value);
    public boolean containsKey(K key);
    public boolean remove(Object key, Object value);
    public V remove(K key);
    public void clear();
    public Set<Map.Entry<K,V>> entrySet();
    public int size();
    public V getValueOrDefault(Object key, V defaultValue);

    public boolean containsValue(V value);
    public K findKey(V value);
}

Version data entries

150 entries across 142 versions & 47 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
mumukit-content-type-1.12.1 vendor/bundle/ruby/2.7.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
mumukit-content-type-1.12.0 vendor/bundle/ruby/2.7.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java