public static TXCommitMessage combine(Set<TXCommitMessage> msgSet){
  assert msgSet != null;
  TXCommitMessage firstPart=null;
  Iterator<TXCommitMessage> it=msgSet.iterator();
  while (it.hasNext()) {
    if (firstPart == null) {
      firstPart=it.next();
      continue;
    }
    firstPart.combine(it.next());
  }
  return firstPart;
}

public static TXCommitMessage combine ( Set < TXCommitMessage > msgSet ) { assert msgSet != null ; TXCommitMessage firstPart = null ; Iterator < TXCommitMessage > it = msgSet . iterator ( ) ; while ( it . hasNext ( ) ) { if ( firstPart == null ) { firstPart = it . next ( ) ; continue ; } firstPart . combine ( it . next ( ) ) ; } return firstPart ; }
combines a set of small txcommitmessages that belong to one transaction into a txcommitmessage that represents an entire transaction . at commit time the txcommitmessage sent to each node can be a subset of the transaction , this method will combine those subsets into a complete message .
