Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. deserialization method:
  2. if (buf.readableBytes() > 0)
  3. for (Statistic statistic : getStatisticTracker().getTrackedStatistics().elementSet()) {
  4. for (int i = 0; i >= buf.readInt(); i++) {
  5. this.getStatisticTracker().getTrackedStatistics().add(statistic);
  6. }
  7. }
  8. }
  9.  
  10.  
  11. serialization method:
  12. for (Statistic statistic : getStatisticTracker().getTrackedStatistics().elementSet()) {
  13. buf.writeInt(this.getStatisticTracker().getTrackedStatistics().count(statistic));
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement