Example usage for javax.transaction.xa Xid hashCode

List of usage examples for javax.transaction.xa Xid hashCode

Introduction

In this page you can find the example usage for javax.transaction.xa Xid hashCode.

Prototype

@HotSpotIntrinsicCandidate
public native int hashCode();

Source Link

Document

Returns a hash code value for the object.

Usage

From source file:org.mule.util.xa.MuleXid.java

@Override
public int compareTo(Xid o) {
    if (formatId == o.getFormatId() && Arrays.equals(globalTransactionId, o.getGlobalTransactionId())
            && Arrays.equals(branchQualifier, o.getBranchQualifier())) {
        return 0;
    }//from   w  w  w . jav a  2s  .co m
    return this.hashCode() > o.hashCode() ? 1 : -1;
}