bitronix.tm.utils
Class Uid

java.lang.Object
  extended by bitronix.tm.utils.Uid

public final class Uid
extends Object

A constant UID byte array container optimized for use with hashed collections.

Author:
lorban

Constructor Summary
Uid(byte[] array)
           
 
Method Summary
 boolean equals(Object obj)
           
 int extractSequence()
           
 byte[] extractServerId()
           
 long extractTimestamp()
           
 byte[] getArray()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Uid

public Uid(byte[] array)
Method Detail

getArray

public byte[] getArray()

extractServerId

public byte[] extractServerId()

extractTimestamp

public long extractTimestamp()

extractSequence

public int extractSequence()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2013 Bitronix Software. All Rights Reserved.