Sha256: 4e4d15e57c4abea6240c60ab60dda1765c528d41af5957a946e87502086804d1

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 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);
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thread_safe-0.2.0-java ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java
thread_safe-0.2.0 ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java