Android Open Source - android-mydropboxelibrary E Book Date Comparator






From Project

Back to project page android-mydropboxelibrary.

License

The source code is released under:

GNU General Public License

If you think the Android project android-mydropboxelibrary listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.sch.mydropboxelibrary.model.comparators;
/* w w w  .j a  v a2 s  .  c om*/
import java.util.Comparator;

import com.sch.mydropboxelibrary.model.EBook;


/**
 * Comparator that sort by the creation date of the ebook
 */
public class EBookDateComparator implements Comparator<EBook>{
  @Override
  public int compare(EBook ebook1, EBook ebook2) {
    return ebook1.getCreationDate().compareTo(ebook2.getCreationDate());
  }
}




Java Source Code List

com.sch.mydropboxelibrary.DropboxAPIKeys.java
com.sch.mydropboxelibrary.HomeActivity.java
com.sch.mydropboxelibrary.adapters.EbookArrayAdapter.java
com.sch.mydropboxelibrary.adapters.FolderArrayAdapter.java
com.sch.mydropboxelibrary.model.EBook.java
com.sch.mydropboxelibrary.model.comparators.EBookDateComparator.java
com.sch.mydropboxelibrary.model.comparators.EBookTitleComparator.java