List of usage examples for javax.transaction.xa Xid hashCode
@HotSpotIntrinsicCandidate public native int hashCode();
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; }