Back to project page storage-android.
The source code is released under:
MIT License
If you think the Android project storage-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.contexthub.storageapp.models; // ww w.ja v a 2s .com import com.chaione.contexthub.sdk.model.VaultDocument; import java.util.Comparator; /** * Created by andy on 10/20/14. */ public class PersonComparator implements Comparator<VaultDocument<Person>> { @Override public int compare(VaultDocument<Person> personVaultDocument, VaultDocument<Person> personVaultDocument2) { return personVaultDocument.getDataObject().getName().toLowerCase().compareTo( personVaultDocument2.getDataObject().getName().toLowerCase()); } }