org.sourceforge.jemm.util.managed.bucket
Interface ECMapBucket<K,V>

Type Parameters:
K - The map key type.
V - The map value type.
All Known Implementing Classes:
BucketLockedBucket

public interface ECMapBucket<K,V>

An EnhancedConcurrentMap bucket.

Author:
Rory Graves

Method Summary
 void clear()
           
 boolean contains(V value)
           
 boolean containsKey(K key)
           
 V get(K key)
           
 void perform(K key, ECMAction<K,V> action)
           
 V put(K key, V value)
           
 V putIfAbsent(K key, V value)
           
 V remove(K key)
           
 boolean remove(K key, V value)
           
 V replace(K key, V value)
           
 boolean replace(K key, V oldValue, V newValue)
           
 int size()
           
 

Method Detail

perform

void perform(K key,
             ECMAction<K,V> action)

size

int size()
Returns:
The number of entries currently stored within the bucket.

clear

void clear()

containsKey

boolean containsKey(K key)

contains

boolean contains(V value)

putIfAbsent

V putIfAbsent(K key,
              V value)

remove

boolean remove(K key,
               V value)

replace

V replace(K key,
          V value)

replace

boolean replace(K key,
                V oldValue,
                V newValue)

get

V get(K key)

put

V put(K key,
      V value)

remove

V remove(K key)


Copyright © 2009. All Rights Reserved.