Exemple #1
0
    @Override
    public int compareTo(WallPost anotherMatch) throws ClassCastException {
      long anotherPostDate = anotherMatch.getCreationDate().getTime();
      // return (int) (this.date - anotherMatchDate);    //result of this operation can overflow

      return (this.created_time.getTime() < anotherPostDate)
          ? -1
          : (this.created_time.getTime() > anotherPostDate) ? 1 : 0;
    }
Exemple #2
0
 public void debugWallPost() {
   for (WallPost wallpost : wallPosts.values()) {
     Log.err(wallpost.toString());
   }
 }