コード例 #1
0
ファイル: DataTree.java プロジェクト: gildafnai82/craq
 public static void copyStatPersisted(StatPersisted from, StatPersisted to) {
   to.setAversion(from.getAversion());
   to.setCtime(from.getCtime());
   to.setCversion(from.getCversion());
   to.setCzxid(from.getCzxid());
   to.setMtime(from.getMtime());
   to.setMzxid(from.getMzxid());
   to.setPzxid(from.getPzxid());
   to.setVersion(from.getVersion());
   to.setEphemeralOwner(from.getEphemeralOwner());
 }
コード例 #2
0
 /**
  * convert the old stat to new stat
  *
  * @param oldStat the old stat
  * @return the new stat
  */
 private StatPersisted convertStat(StatPersistedV1 oldStat) {
   StatPersisted stat = new StatPersisted();
   stat.setAversion(oldStat.getAversion());
   stat.setCtime(oldStat.getCtime());
   stat.setCversion(oldStat.getCversion());
   stat.setCzxid(oldStat.getCzxid());
   stat.setEphemeralOwner(oldStat.getEphemeralOwner());
   stat.setMtime(oldStat.getMtime());
   stat.setMzxid(oldStat.getMzxid());
   stat.setVersion(oldStat.getVersion());
   return stat;
 }