Back to project page SimpleNotes.
The source code is released under:
Apache License
If you think the Android project SimpleNotes 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.moysa.simplenotes.core; //from ww w . j a v a 2s.c om import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * Created by Sergey Moysa on 15.03.14. */ public class NotesUtils { public static void sortNotes(List<Note> notes, boolean byName, boolean asc) { Collections.sort(notes, new NotesComparator(byName, asc)); } public static List<Note> searchForText(String text, List<Note> notes) { ArrayList<Note> result = new ArrayList<Note>(); for (Note note : notes) { if (note.getMessage().contains(text) || note.getName().contains(text)) result.add(note); } return result; } }