bunshin.util
Class Bucket

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<rice.p2p.commonapi.Id,java.io.Serializable>
          extended by bunshin.util.Bucket
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<rice.p2p.commonapi.Id,java.io.Serializable>

public class Bucket
extends java.util.Hashtable<rice.p2p.commonapi.Id,java.io.Serializable>
implements java.io.Serializable, java.lang.Cloneable

The bucket, a chunk of hashtable, to belongs to specific key's rank

Author:
Ruben Mondejar
See Also:
Serialized Form

Constructor Summary
Bucket()
           
 
Method Summary
 void add(Bucket newBucket)
           
 java.io.Serializable extract(rice.p2p.commonapi.Id key)
           
 void overwrite(rice.p2p.commonapi.Id key, java.io.Serializable value)
           
 java.io.Serializable remove(rice.p2p.commonapi.Id key)
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bucket

public Bucket()
Method Detail

add

public void add(Bucket newBucket)

overwrite

public void overwrite(rice.p2p.commonapi.Id key,
                      java.io.Serializable value)

remove

public java.io.Serializable remove(rice.p2p.commonapi.Id key)

extract

public java.io.Serializable extract(rice.p2p.commonapi.Id key)

toString

public java.lang.String toString()
Overrides:
toString in class java.util.Hashtable<rice.p2p.commonapi.Id,java.io.Serializable>