P-Grid v2.0a2 API Specification

p2p.basic
Interface GUID


public interface GUID

Global Unique Identifier is used to distinguish objects in a distributed environment. Implementations must define the hashCode and equals methods to that effect.


Method Summary
 byte[] getBytes()
          Returns the value of the unique ID.
 String toString()
          Returns the string representation of the unique ID.
 

Method Detail

getBytes

byte[] getBytes()
Returns the value of the unique ID.

Returns:
returns a byte array the represents the unique ID.

toString

String toString()
Returns the string representation of the unique ID.

Overrides:
toString in class Object
Returns:
returns a string that represents the unique ID.

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