P-Grid v2.0a2 API Specification

p2p.basic
Interface Key


public interface Key

Is used to address items and peers in the distributed indexing structure used by the peer-to-peer network.


Method Summary
 byte[] getBytes()
          Returns the value of the key.
 int size()
          Returns the size of the key.
 String toString()
           
 

Method Detail

getBytes

byte[] getBytes()
Returns the value of the key.

Returns:
returns a byte array the represents the key.

size

int size()
Returns the size of the key.

Returns:
the size.

toString

String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

P-Grid v2.0a2 API Specification

This is open source software distributed under the terms of the GNU General Public License, a copy of which is included in the file LICENSE. If not you can find the GPL at http://www.gnu.org/copyleft/gpl.txt